[libhif/f20] Initial version for Fedora package review

Richard Hughes rhughes at fedoraproject.org
Tue Jun 10 16:15:32 UTC 2014


commit f7814e22d5c5d004395d5721af4aa8d4def9134b
Author: Richard Hughes <richard at hughsie.com>
Date:   Tue Jun 10 16:34:42 2014 +0100

    Initial version for Fedora package review

 .gitignore  |    1 +
 libhif.spec |   66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources     |    1 +
 3 files changed, 68 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5cbf790 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libhif-0.1.0.tar.xz
diff --git a/libhif.spec b/libhif.spec
new file mode 100644
index 0000000..8aecd53
--- /dev/null
+++ b/libhif.spec
@@ -0,0 +1,66 @@
+Summary:   Simple package library built on top of hawkey and librepo
+Name:      libhif
+Version:   0.1.0
+Release:   1%{?dist}
+License:   LGPLv2+
+URL:       https://github.com/hughsie/libhif
+Source0:   http://people.freedesktop.org/~hughsient/releases/libhif-%{version}.tar.xz
+
+BuildRequires: glib2-devel >= 2.16.1
+BuildRequires: libtool
+BuildRequires: docbook-utils
+BuildRequires: gtk-doc
+BuildRequires: gobject-introspection-devel
+BuildRequires: hawkey-devel >= 0.4.6
+BuildRequires: rpm-devel >= 4.11.0
+BuildRequires: librepo-devel >= 1.1.5
+BuildRequires: libsolv-devel
+
+%description
+This library provides a simple interface to hawkey and librepo and is currently
+used by PackageKit and rpm-ostree.
+
+%package devel
+Summary: GLib Libraries and headers for libhif
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+GLib headers and libraries for libhif.
+
+%prep
+%setup -q
+
+%build
+%configure \
+        --enable-gtk-doc \
+        --disable-static \
+        --disable-silent-rules
+
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+
+rm -f $RPM_BUILD_ROOT%{_libdir}/libhif*.la
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%doc README.md AUTHORS NEWS COPYING
+%{_libdir}/libhif.so.1*
+%{_libdir}/girepository-1.0/*.typelib
+
+%files devel
+%{_libdir}/libhif.so
+%{_libdir}/pkgconfig/libhif.pc
+%dir %{_includedir}/libhif
+%{_includedir}/libhif/*.h
+%{_datadir}/gtk-doc
+%{_datadir}/gir-1.0/*.gir
+
+%changelog
+* Tue Jun 10 2014 Richard Hughes <richard at hughsie.com> 0.1.0-1
+- Initial version for Fedora package review
+
diff --git a/sources b/sources
index e69de29..c17e40b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+50d2fcc5cd61d93af70168a4a4ea1e1b  libhif-0.1.0.tar.xz


More information about the scm-commits mailing list