mcrha pushed to libical-glib (master). "Initial packaging for Fedora"

notifications at fedoraproject.org notifications at fedoraproject.org
Fri Mar 27 06:41:40 UTC 2015


>From c11ca5f9a29913e7e0904b7773a6755071cc5d80 Mon Sep 17 00:00:00 2001
From: Milan Crha <mcrha at redhat.com>
Date: Fri, 27 Mar 2015 07:41:33 +0100
Subject: Initial packaging for Fedora


diff --git a/.gitignore b/.gitignore
index e69de29..fe30d62 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libical-glib-1.0.2.tar.xz
diff --git a/libical-glib.spec b/libical-glib.spec
new file mode 100644
index 0000000..c85ef4a
--- /dev/null
+++ b/libical-glib.spec
@@ -0,0 +1,100 @@
+# Coverity scan can override this to 0, to skip checking in gtk-doc generated code
+%{!?with_docs: %global with_docs 1}
+
+%global libical_version 1.0
+
+Name: libical-glib
+Version: 1.0.2
+Release: 1%{?dist}
+Summary: GObject wrapper for libical library
+Group: System Environment/Libraries
+License: LGPLv2
+URL: https://wiki.gnome.org/Projects/libical-glib
+Source: http://download.gnome.org/sources/%{name}/1.0/%{name}-%{version}.tar.xz
+
+Requires: libical >= %{libical_version}
+
+BuildRequires: gtk-doc
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(gobject-2.0)
+BuildRequires: pkgconfig(gobject-introspection-1.0)
+BuildRequires: pkgconfig(libxml-2.0)
+BuildRequires: pkgconfig(libical) >= %{libical_version}
+
+%description
+This package provides a GObject wrapper for libical library with support
+of GObject Introspection.
+
+%package devel
+Summary: Development files for building against %{name}
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: pkgconfig(glib-2.0)
+Requires: pkgconfig(gobject-2.0)
+Requires: pkgconfig(libical) >= %{libical_version}
+
+%description devel
+Development files needed for building things which link against %{name}.
+
+%if %{with_docs}
+
+%package doc
+Summary: Documentation files for %{name}
+Group: Development/Libraries
+BuildArch: noarch
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description doc
+This package contains developer documentation for %{name}.
+
+# %{with_docs}
+%endif
+
+%prep
+%setup -q
+
+%build
+
+%if %{with_docs}
+%global gtkdoc_flags --enable-gtk-doc
+%else
+%global gtkdoc_flags --disable-gtk-doc
+%endif
+
+%configure --enable-introspection %gtkdoc_flags
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+rm -f $RPM_BUILD_ROOT/%{_libdir}/libical-glib-1.0.la
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING NEWS README
+%{_libdir}/libical-glib-1.0.so.*
+%{_libdir}/girepository-1.0/ICalGLib-1.0.typelib
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/libical-glib
+%{_libdir}/libical-glib-1.0.so
+%{_libdir}/pkgconfig/libical-glib-1.0.pc
+%{_datadir}/gir-1.0/ICalGLib-1.0.gir
+
+%if %{with_docs}
+
+%files doc
+%defattr(-,root,root,-)
+%{_datadir}/gtk-doc/html/%{name}
+
+%endif
+
+%changelog
+* Fri Mar 27 2015 Milan Crha <mcrha at redhat.com> - 1.0.2-1
+- Initial packaging for Fedora
diff --git a/sources b/sources
index e69de29..3d234d7 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c618fb2927a89970f5ac15a9a08b70f8  libical-glib-1.0.2.tar.xz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/libical-glib.git/commit/?h=master&id=c11ca5f9a29913e7e0904b7773a6755071cc5d80


More information about the scm-commits mailing list