[mingw-colord-gtk] Initial packaging attempt

Richard Hughes rhughes at fedoraproject.org
Wed Dec 3 13:03:11 UTC 2014


commit b59dea8f5b83360911ee6b893698b6a1b732d439
Author: Richard Hughes <richard at hughsie.com>
Date:   Wed Dec 3 13:02:06 2014 +0000

    Initial packaging attempt

 .gitignore            |    1 +
 mingw-colord-gtk.spec |  113 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 115 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7009753 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/colord-gtk-0.1.26.tar.xz
diff --git a/mingw-colord-gtk.spec b/mingw-colord-gtk.spec
new file mode 100644
index 0000000..3ccb5cd
--- /dev/null
+++ b/mingw-colord-gtk.spec
@@ -0,0 +1,113 @@
+%{?mingw_package_header}
+
+Name:           mingw-colord-gtk
+Version:        0.1.26
+Release:        1%{?dist}
+Summary:        MinGW GTK support library for colord
+
+License:        GPLv2+ and LGPLv2+
+URL:            http://www.freedesktop.org/software/colord/
+Source0:        http://www.freedesktop.org/software/colord/releases/colord-gtk-%{version}.tar.xz
+
+BuildArch:      noarch
+BuildRequires:  mingw32-filesystem >= 95
+BuildRequires:  mingw64-filesystem >= 95
+BuildRequires:  mingw32-gcc
+BuildRequires:  mingw64-gcc
+BuildRequires:  mingw32-glib2
+BuildRequires:  mingw64-glib2
+BuildRequires:  mingw32-colord
+BuildRequires:  mingw64-colord
+BuildRequires:  mingw32-gtk3
+BuildRequires:  mingw64-gtk3
+BuildRequires:  intltool
+
+%description
+colord-gtk is a support library for colord and provides additional
+functionality that requires GTK+.
+
+This is the MinGW version of this library.
+
+%package -n mingw32-colord-gtk
+Summary:        MinGW GTK support library for colord
+Requires:       pkgconfig
+
+%description -n mingw32-colord-gtk
+This package contains the header files and libraries needed to develop
+applications that use libcolord.
+
+%package -n mingw32-colord-gtk-static
+Summary:        MinGW GTK static library for colord
+Requires:       mingw32-colord-gtk = %{version}-%{release}
+
+%description -n mingw32-colord-gtk-static
+This package contains the static libraries needed to develop
+applications that use libcolord-gtk.
+
+%package -n mingw64-colord-gtk
+Summary:        MinGW GTK support library for colord
+Requires:       pkgconfig
+
+%description -n mingw64-colord-gtk
+This package contains the header files and libraries needed to develop
+applications that use libcolord-gtk.
+
+%package -n mingw64-colord-gtk-static
+Summary:        MinGW GTK static library for colord
+Requires:       mingw64-colord-gtk = %{version}-%{release}
+
+%description -n mingw64-colord-gtk-static
+This package contains the static libraries needed to develop
+applications that use libcolord-gtk.
+
+%{?mingw_debug_package}
+
+
+%prep
+%setup -q -n colord-gtk-%{version}
+
+
+%build
+%mingw_configure --without-pic
+%mingw_make %{?_smp_mflags} V=1
+
+
+%install
+%mingw_make_install "DESTDIR=$RPM_BUILD_ROOT"
+
+%mingw_find_lang colord-gtk
+
+# Libtool files don't need to be bundled
+find $RPM_BUILD_ROOT -name "*.la" -delete
+
+# delete things we don't want/need
+rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/man
+rm -rf $RPM_BUILD_ROOT%{mingw64_datadir}/man
+
+%files -n mingw32-colord-gtk -f mingw32-colord-gtk.lang
+%doc AUTHORS COPYING README NEWS
+%{mingw32_bindir}/cd-convert.exe
+%{mingw32_bindir}/libcolord-gtk-1.dll
+%{mingw32_includedir}/colord-1/colord-gtk
+%{mingw32_includedir}/colord-1/*.h
+%{mingw32_libdir}/libcolord-gtk.dll.a
+%{mingw32_libdir}/pkgconfig/*.pc
+
+%files -n mingw32-colord-gtk-static
+%{mingw32_libdir}/libcolord-gtk.a
+
+%files -n mingw64-colord-gtk -f mingw64-colord-gtk.lang
+%doc AUTHORS COPYING README NEWS
+%{mingw64_bindir}/cd-convert.exe
+%{mingw64_bindir}/libcolord-gtk-1.dll
+%{mingw64_includedir}/colord-1/colord-gtk
+%{mingw64_includedir}/colord-1/*.h
+%{mingw64_libdir}/libcolord-gtk.dll.a
+%{mingw64_libdir}/pkgconfig/*.pc
+
+%files -n mingw64-colord-gtk-static
+%{mingw64_libdir}/libcolord-gtk.a
+
+%changelog
+* Wed Nov 19 2014 Richard Hughes <richard at hughsie.com> - 0.1.26-1
+- Initial packaging attempt
diff --git a/sources b/sources
index e69de29..02689eb 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+bb9d6f3c037152ad791003375aa6c16c  colord-gtk-0.1.26.tar.xz


More information about the scm-commits mailing list