diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..26bcd70 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/zimlib-1.0.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index dcb5a86..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Renamed to libzim. diff --git a/sources b/sources new file mode 100644 index 0000000..a59a905 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +d5370ef03c4399ffb73e73807e0bec14 zimlib-1.0.tar.gz diff --git a/zimlib.spec b/zimlib.spec new file mode 100644 index 0000000..272c96e --- /dev/null +++ b/zimlib.spec @@ -0,0 +1,126 @@ +Name: zimlib +Version: 1.0 +Release: 16%{?dist} +Summary: Library for reading/writing ZIM files + +License: GPLv2+ +URL: http://openzim.org/wiki/Main_Page +Source0: http://www.openzim.org/download/%{name}-%{version}.tar.gz + +BuildRequires: xz-devel + +%description +The zimlib is the standard implementation of the ZIM specification. It is a +library which implements the read and write method for ZIM files. Use zimlib in +your own software - like reader applications - to make them ZIM-capable without +the need having to dig too much into the ZIM file format. zimlib is written in +C++. It also includes the binaries zimsearch and zimdump, for directly +searching and viewing ZIM file contents. + + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%setup -q + + +%build +%configure --disable-static +make %{?_smp_mflags} + + +%install +# notified upstream about non-preserving installation of files. He filed a bug. +%make_install INSTALL="/usr/bin/install -c -p" +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' + + +%post -p /sbin/ldconfig + + +%postun -p /sbin/ldconfig + + +%files +%doc AUTHORS COPYING +%{_bindir}/zimdump +%{_bindir}/zimsearch +%{_libdir}/*.so.* + +%files devel +%{_includedir}/zim/ +%{_libdir}/*.so + + +%changelog +* Fri Feb 09 2018 Fedora Release Engineering - 1.0-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 1.0-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.0-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon May 15 2017 Fedora Release Engineering - 1.0-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Feb 05 2016 Fedora Release Engineering - 1.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jun 19 2015 Fedora Release Engineering - 1.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat May 02 2015 Kalev Lember - 1.0-9 +- Rebuilt for GCC 5 C++11 ABI change + +* Mon Aug 18 2014 Fedora Release Engineering - 1.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 1.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Apr 26 2013 Micah Roth 1.0-5 +- forced INSTALL to preserve timestamps for non-compiled files + +* Thu Apr 25 2013 Micah Roth 1.0-4 +- --formal review volter-- +- removed INSTALL, NEWS, README files from %%docs +- added COPYING file to %%docs +- removed unnecessary commented lines and empty sections +- improved %%files devel section with asterisk removal and more specificity +- added spaces in the %%changelog area between updates + +* Tue Apr 23 2013 Micah Roth 1.0-3 +- --informal review volter-- +- updated descriptions to match %%files lists +- added --disable-static to %%configure + +* Sat Apr 20 2013 Micah Roth 1.0-2 +- added %%doc files +- removed commented lines +- removed --disable-static because it doesn't apply (right?) +- ---volter's informal review--- +- moved binaries to base package %%files list +- commented libtool BR +- uncommented removal of *la file(s) +- added macros into Source0 +- commented *a %%files list entry + +* Sat Apr 20 2013 Micah Roth 1.0-1 +- created spec file +- commented automake and autotools BRs as recommended by rdieter