]> git.pld-linux.org Git - packages/libgweather.git/blame - libgweather.spec
- updated to 3.8.0
[packages/libgweather.git] / libgweather.spec
CommitLineData
244020ad
JB
1Summary: Library to access weather information from online services for numerous locations
2Summary(pl.UTF-8): Biblioteka dostępu do informacji pogodowych z serwisów internetowych dla różnych miejsc
c9828fba 3Name: libgweather
cf4e621b 4Version: 3.8.0
642b0181 5Release: 1
c9828fba
PZ
6License: GPL v2+
7Group: X11/Libraries
cf4e621b
ŁK
8Source0: http://ftp.gnome.org/pub/GNOME/sources/libgweather/3.8/%{name}-%{version}.tar.xz
9# Source0-md5: 06610b910fd9d841b81041c2f457df7b
c9828fba 10URL: http://www.gnome.org/
957c5fdb
ŁK
11BuildRequires: autoconf >= 2.64
12BuildRequires: automake >= 1:1.11
1b4360b9 13BuildRequires: gettext-devel
cf4e621b 14BuildRequires: glib2-devel >= 1:2.35.1
c9828fba 15BuildRequires: gnome-common >= 2.20.0
642b0181 16BuildRequires: gobject-introspection-devel >= 0.10.0
4d0c23ce 17BuildRequires: gtk+3-devel >= 3.0.0
957c5fdb 18BuildRequires: gtk-doc >= 1.11
21a08ec1 19BuildRequires: intltool >= 0.50.0
cf4e621b 20BuildRequires: libsoup-gnome-devel >= 2.34.0
7ae3b956 21BuildRequires: libtool >= 2:2.2.6
ddb8530d 22BuildRequires: libxml2-devel >= 1:2.6.30
1b4360b9 23BuildRequires: pkgconfig >= 1:0.19
65eac4a2
ŁK
24BuildRequires: tar >= 1:1.22
25BuildRequires: xz
a24a2447 26Requires(post,postun): gnome-icon-theme
407a5e37 27Requires(post,postun): gnome-icon-theme-symbolic
39e3b2f6 28Requires(post,postun): gtk-update-icon-cache
cf4e621b 29Requires(post,postun): glib2 >= 1:2.35.1
c9828fba
PZ
30# sr@Latn vs. sr@latin
31Conflicts: glibc-misc < 6:2.7
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
35libgweather is a library to access weather information from online
36services for numerous locations.
37
244020ad
JB
38%description -l pl.UTF-8
39libgweather to biblioteka pozwalająca na dostęp do informacji
40pogodowych z serwisów internetowych dla różnych miejsc.
41
c9828fba
PZ
42%package devel
43Summary: Header files for libgweather
244020ad 44Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgweather
c9828fba
PZ
45Group: X11/Development/Libraries
46Requires: %{name} = %{version}-%{release}
4d0c23ce 47Requires: gtk+3-devel >= 3.0.0
cf4e621b 48Requires: libsoup-devel >= 2.34.0
ddb8530d 49Requires: libxml2-devel >= 1:2.6.30
7da92f12 50Obsoletes: gnome-applets-devel <= 2.21.4
c9828fba
PZ
51
52%description devel
53Header files for libgweather.
54
244020ad
JB
55%description devel -l pl.UTF-8
56Pliki nagłówkowe biblioteki libgweather.
57
c9828fba
PZ
58%package static
59Summary: Static libgweather library
244020ad 60Summary(pl.UTF-8): Statyczna biblioteka libgweather
1b4360b9 61Group: X11/Development/Libraries
c9828fba
PZ
62Requires: %{name}-devel = %{version}-%{release}
63
64%description static
65Static libgweather library.
66
244020ad
JB
67%description static -l pl.UTF-8
68Statyczna biblioteka libgweather.
69
1f4859e3
PZ
70%package apidocs
71Summary: libgweather API documentation
72Summary(pl.UTF-8): Dokumentacja API biblioteki libgweather
73Group: Documentation
74Requires: gtk-doc-common
75
76%description apidocs
77libgweather API documentation.
78
79%description apidocs -l pl.UTF-8
80Dokumentacja API biblioteki libgweather.
81
c9828fba
PZ
82%prep
83%setup -q
84
85%build
a9867bbe 86%{__gtkdocize}
c9828fba
PZ
87%{__intltoolize}
88%{__libtoolize}
8726bc62 89%{__aclocal} -I m4
c9828fba 90%{__autoconf}
1b4360b9 91%{__autoheader}
c9828fba 92%{__automake}
2715db3e 93%configure \
1f4859e3
PZ
94 --with-zoneinfo-dir=%{_datadir}/zoneinfo \
95 --enable-gtk-doc \
a24a2447 96 --with-html-dir=%{_gtkdocdir} \
642b0181
ŁK
97 --disable-silent-rules \
98 --enable-static
4d0c23ce 99
9fae6b8b
SS
100%{__make} -j1 -C data
101%{__make}
c9828fba
PZ
102
103%install
104rm -rf $RPM_BUILD_ROOT
105
106%{__make} install \
107 DESTDIR=$RPM_BUILD_ROOT
108
21a08ec1 109%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES
4d0c23ce 110%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
1b4360b9 111
4d0c23ce 112%find_lang libgweather-3.0
c9828fba 113
4d39f76c 114find $RPM_BUILD_ROOT -name "Locations.*.xml" | sed 's:'"$RPM_BUILD_ROOT"'::
4d0c23ce 115s:\(.*\)/Locations\.\([^.]*\)\.xml:%lang(\2) \1/Locations.\2.xml:' >> libgweather-3.0.lang
4d39f76c 116
c9828fba
PZ
117%clean
118rm -rf $RPM_BUILD_ROOT
119
120%post
121/sbin/ldconfig
21a08ec1 122%glib_compile_schemas
a24a2447 123%update_icon_cache gnome
c9828fba 124
a24a2447
MB
125%postun
126/sbin/ldconfig
21a08ec1 127%glib_compile_schemas
a24a2447 128%update_icon_cache gnome
c9828fba 129
4d0c23ce 130%files -f libgweather-3.0.lang
c9828fba
PZ
131%defattr(644,root,root,755)
132%doc ChangeLog README
4d0c23ce 133%attr(755,root,root) %{_libdir}/libgweather-3.so.*.*.*
cf4e621b 134%attr(755,root,root) %ghost %{_libdir}/libgweather-3.so.3
21a08ec1
ŁK
135%{_datadir}/glib-2.0/schemas/org.gnome.GWeather.enums.xml
136%{_datadir}/glib-2.0/schemas/org.gnome.GWeather.gschema.xml
4d39f76c
MB
137%dir %{_datadir}/libgweather
138%{_datadir}/libgweather/Locations.xml
139%{_datadir}/libgweather/locations.dtd
407a5e37
JR
140%{_iconsdir}/gnome/*/status/*.png
141%{_iconsdir}/gnome/scalable/status/*.svg
4d0c23ce 142%{_libdir}/girepository-1.0/GWeather-3.0.typelib
c9828fba
PZ
143
144%files devel
145%defattr(644,root,root,755)
4d0c23ce
ŁK
146%attr(755,root,root) %{_libdir}/libgweather-3.so
147%{_includedir}/libgweather-3.0
148%{_pkgconfigdir}/gweather-3.0.pc
149%{_datadir}/gir-1.0/GWeather-3.0.gir
c9828fba
PZ
150
151%files static
152%defattr(644,root,root,755)
4d0c23ce 153%{_libdir}/libgweather-3.a
1f4859e3
PZ
154
155%files apidocs
156%defattr(644,root,root,755)
4d0c23ce 157%{_gtkdocdir}/libgweather-3.0
This page took 0.071415 seconds and 4 git commands to generate.