]> git.pld-linux.org Git - packages/libeweather.git/commitdiff
- new auto/th/libeweather-0.2.0-0.20130810.1
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 18 Dec 2013 19:03:19 +0000 (20:03 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 18 Dec 2013 19:03:19 +0000 (20:03 +0100)
libeweather-dirs.patch [new file with mode: 0644]
libeweather.spec [new file with mode: 0644]

diff --git a/libeweather-dirs.patch b/libeweather-dirs.patch
new file mode 100644 (file)
index 0000000..8976018
--- /dev/null
@@ -0,0 +1,22 @@
+--- libeweather/data/default/images/Makefile.am.orig   2013-12-17 21:13:57.000000000 +0100
++++ libeweather/data/default/images/Makefile.am        2013-12-18 19:41:59.492734558 +0100
+@@ -1,7 +1,7 @@
+ MAINTAINERCLEANFILES = Makefile.in
+ # data files for the module
+-filesdir = $(datadir)/default/images
++filesdir = $(pkgdatadir)/default/images
+ files_DATA = $(wildcard *.png)
+--- libeweather/data/simple/images/Makefile.am.orig    2013-12-17 21:13:57.000000000 +0100
++++ libeweather/data/simple/images/Makefile.am 2013-12-18 19:43:06.089398428 +0100
+@@ -1,7 +1,7 @@
+ MAINTAINERCLEANFILES = Makefile.in
+ # data files for the module
+-filesdir = $(datadir)/simple/images
++filesdir = $(pkgdatadir)/simple/images
+ files_DATA = $(wildcard *.png)
diff --git a/libeweather.spec b/libeweather.spec
new file mode 100644 (file)
index 0000000..9f73dfb
--- /dev/null
@@ -0,0 +1,131 @@
+#
+# Conditional build:
+%bcond_without static_libs     # static library
+#
+Summary:       Enlightenment weather library
+Summary(pl.UTF-8):     Biblioteka informacji pogodowych dla środowiska Enlightenment
+Name:          libeweather
+Version:       0.2.0
+%define        snap    20130810
+Release:       0.%{snap}.1
+License:       LGPL v2.1
+Group:         Libraries
+# git clone http://git.enlightenment.org/libs/libeweather.git
+Source0:       %{name}.tar.xz
+# Source0-md5: 4a653fdab6b297781a3a80abae560623
+Patch0:                %{name}-dirs.patch
+URL:           http://git.enlightenment.org/libs/libeweather.git/
+BuildRequires: autoconf >= 2.52
+BuildRequires: automake >= 1.6
+BuildRequires: ecore-devel >= 1.0.0
+BuildRequires: ecore-con-devel >= 1.0.0
+BuildRequires: ecore-evas-devel >= 1.0.0
+BuildRequires: ecore-file-devel >= 1.0.0
+BuildRequires: edje-devel >= 1.0.0
+BuildRequires: eina-devel >= 1.0.0
+BuildRequires: evas-devel >= 1.0.0
+BuildRequires: libtool
+BuildRequires: pkgconfig >= 1:0.22
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+Requires:      ecore >= 1.0.0
+Requires:      ecore-con >= 1.0.0
+Requires:      ecore-evas >= 1.0.0
+Requires:      ecore-file >= 1.0.0
+Requires:      edje-libs >= 1.0.0
+Requires:      eina >= 1.0.0
+Requires:      evas >= 1.0.0
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Enlightenment weather library.
+
+%description -l pl.UTF-8
+Biblioteka informacji pogodowych dla środowiska Enlightenment.
+
+%package devel
+Summary:       Header files for Eweather library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki Eweather
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      ecore-devel >= 1.0.0
+Requires:      ecore-con-devel >= 1.0.0
+Requires:      ecore-evas-devel >= 1.0.0
+Requires:      ecore-file-devel >= 1.0.0
+Requires:      edje-devel >= 1.0.0
+Requires:      eina-devel >= 1.0.0
+Requires:      evas-devel >= 1.0.0
+
+%description devel
+Header files for Eweather library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki Eweather.
+
+%package static
+Summary:       Static Eweather library
+Summary(pl.UTF-8):     Statyczna biblioteka Eweather
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static Eweather library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka Eweather.
+
+%prep
+%setup -q -n %{name}
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       --disable-silent-rules
+       %{!?with_static_libs:--disable-static}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+# loadable modules
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/eweather/plugins/*.la
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libeweather.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING-PLAIN README
+%attr(755,root,root) %{_bindir}/eweather_test
+%attr(755,root,root) %{_libdir}/libeweather.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libeweather.so.0
+%dir %{_libdir}/eweather
+%dir %{_libdir}/eweather/plugins
+%attr(755,root,root) %{_libdir}/eweather/plugins/test.so
+%attr(755,root,root) %{_libdir}/eweather/plugins/yahoo.so
+%{_datadir}/eweather
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libeweather.so
+%{_includedir}/EWeather*.h
+%{_pkgconfigdir}/eweather.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libeweather.a
+%endif
This page took 0.097857 seconds and 4 git commands to generate.