[zimlib] Initial commit (#954354).

Micah Roth ndroftheline at fedoraproject.org
Thu May 2 16:42:48 UTC 2013


commit 49e50eadaca250425c8ed5ca600fe95bc310ec6d
Author: Micah Roth <micah.roth at ucla.edu>
Date:   Fri May 3 00:39:38 2013 +0800

    Initial commit (#954354).

 .gitignore  |    1 +
 sources     |    1 +
 zimlib.spec |   93 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 95 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..26bcd70 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/zimlib-1.0.tar.gz
diff --git a/sources b/sources
index e69de29..a59a905 100644
--- a/sources
+++ 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..dd25fbe
--- /dev/null
+++ b/zimlib.spec
@@ -0,0 +1,93 @@
+Name:           zimlib
+Version:        1.0
+Release:        5%{?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 Apr 26 2013 Micah Roth <micah.roth_ucla.edu> 1.0-5
+- forced INSTALL to preserve timestamps for non-compiled files
+
+* Thu Apr 25 2013 Micah Roth <micah.roth_ucla.edu> 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 <micah.roth_ucla.edu> 1.0-3
+- --informal review volter--
+- updated descriptions to match %%files lists
+- added --disable-static to %%configure
+
+* Sat Apr 20 2013 Micah Roth <micah.roth_ucla.edu> 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 <micah.roth_ucla.edu> 1.0-1
+- created spec file
+- commented automake and autotools BRs as recommended by rdieter 


More information about the scm-commits mailing list