[zif] - Take ownership of the gtk-doc directory, and use another macro.

Richard Hughes rhughes at fedoraproject.org
Mon Oct 4 08:39:41 UTC 2010


commit ccb975e496e1ada4649aeebfd99a33f45008151a
Author: Richard Hughes <richard at hughsie.com>
Date:   Mon Oct 4 09:40:24 2010 +0100

    - Take ownership of the gtk-doc directory, and use another macro.

 .gitignore |    1 +
 sources    |    1 +
 zif.spec   |   84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 86 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ab07c79 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/zif-0.1.0.tar.gz
diff --git a/sources b/sources
index e69de29..a9d5238 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a9343f248c7a8a5646c6bc8c237adaea  zif-0.1.0.tar.gz
diff --git a/zif.spec b/zif.spec
new file mode 100644
index 0000000..9aaaa40
--- /dev/null
+++ b/zif.spec
@@ -0,0 +1,84 @@
+Summary:   Simple wrapper for rpm
+Name:      zif
+Version:   0.1.0
+Release:   4%{?dist}
+License:   GPLv2+
+URL:       http://github.com/hughsie/zif
+Source0:   http://www.packagekit.org/releases/%{name}-%{version}.tar.gz
+
+BuildRequires: glib2-devel >= 2.16.1
+BuildRequires: rpm-devel
+BuildRequires: sqlite-devel
+BuildRequires: libsoup-devel
+BuildRequires: libtool
+BuildRequires: libarchive-devel
+BuildRequires: docbook-utils
+BuildRequires: gnome-doc-utils
+BuildRequires: gtk-doc
+BuildRequires: bzip2-devel
+BuildRequires: zlib-devel
+
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description
+Zif is a simple yum-compatible library that only provides read-only
+access to the rpm database and the Fedora metadata for PackageKit.
+
+Zif is not designed as a replacement to yum, nor to be used by end users.
+
+%package devel
+Summary: GLib Libraries and headers for zif
+Requires: %{name} = %{version}-%{release}
+Requires: pkgconfig
+
+%description devel
+GLib headers and libraries for zif.
+
+%prep
+%setup -q
+
+%build
+%configure \
+        --enable-gtk-doc \
+        --disable-static \
+        --disable-dependency-tracking
+
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+
+rm -f $RPM_BUILD_ROOT%{_libdir}/libzif*.la
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc README AUTHORS NEWS COPYING
+%{_bindir}/zif
+%{_libdir}/*libzif*.so.*
+%{_mandir}/man1/*.1.gz
+
+%files devel
+%defattr(-,root,root,-)
+%{_libdir}/libzif*.so
+%{_libdir}/pkgconfig/zif.pc
+%dir %{_includedir}/libzif
+%{_includedir}/libzif/*.h
+%{_datadir}/gtk-doc
+
+%changelog
+* Fri Oct 01 2010 Richard Hughes <richard at hughsie.com> 0.1.0-4
+- Take ownership of the gtk-doc directory, and use another macro.
+
+* Fri Oct 01 2010 Richard Hughes <richard at hughsie.com> 0.1.0-3
+- Remove group from devel subpackage, and make the description better.
+
+* Fri Oct 01 2010 Richard Hughes <richard at hughsie.com> 0.1.0-2
+- Address some review comments, many thanks.
+
+* Wed Sep 08 2010 Richard Hughes <richard at hughsie.com> 0.1.0-1
+- Initial package for review.


More information about the scm-commits mailing list