]> git.pld-linux.org Git - packages/glade.git/blame - glade.spec
Update to 3.18.2
[packages/glade.git] / glade.spec
CommitLineData
4fc8d865
MB
1#
2# Conditional build:
3%bcond_without apidocs # do not build and package API docs
4%bcond_without static_libs # don't build static libraries
35c62761 5
4fc8d865
MB
6Summary: User interface builder for GTK+ and GNOME
7Summary(pl.UTF-8): Budowniczy interfejsów użytkownika dla GTK+ i GNOME
8Name: glade
2c9f89c3
MB
9Version: 3.18.2
10Release: 1
dbfea978 11License: GPL v2+ and LGPL v2.1+
4fc8d865 12Group: X11/Applications
397e55b8 13Source0: http://ftp.gnome.org/pub/GNOME/sources/glade/3.18/%{name}-%{version}.tar.xz
2c9f89c3 14# Source0-md5: ecc29cef2c94fa4baa0678c295a897f9
4fc8d865
MB
15URL: http://glade.gnome.org/
16BuildRequires: autoconf >= 2.52
17BuildRequires: automake >= 1:1.11
dbfea978 18BuildRequires: gettext-devel >= 0.17
4fc8d865 19BuildRequires: gnome-common
3c11da34 20BuildRequires: gobject-introspection-devel >= 1.32.0
397e55b8 21BuildRequires: gtk+3-devel >= 3.12.0
dbfea978 22BuildRequires: gtk-doc >= 1.13
4fc8d865
MB
23BuildRequires: intltool >= 0.41.0
24BuildRequires: libtool >= 2:2.2.6
dbfea978 25BuildRequires: libxml2-devel >= 2.4.0
3c11da34 26BuildRequires: libxslt-progs
4fc8d865 27BuildRequires: pkgconfig
3c11da34 28BuildRequires: python-pygobject3-devel >= 3.8.0
4fc8d865
MB
29BuildRequires: rpmbuild(find_lang) >= 1.23
30BuildRequires: rpmbuild(macros) >= 1.311
53b4395c
AF
31BuildRequires: tar >= 1:1.22
32BuildRequires: xz
c071c69b 33BuildRequires: yelp-tools
4fc8d865 34Requires(post,postun): gtk-update-icon-cache
f028f8ed 35Requires(post,postun): desktop-file-utils
4fc8d865
MB
36Requires: %{name}-libs = %{version}-%{release}
37Requires: hicolor-icon-theme
0f59bb0f 38Conflicts: glade3 < 3.8.2
4fc8d865
MB
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%description
42Glade is a RAD tool to enable quick & easy development of user
43interfaces for the GTK+ toolkit and the GNOME desktop environment.
44
45The user interfaces designed in Glade are saved as XML, and by using
46the GtkBuilder GTK+ object these can be loaded by applications
47dynamically as needed.
48
49By using GtkBuilder, Glade XML files can be used in numerous
50programming languages including C, C++, C#, Vala, Java, Perl, Python
51and others.
52
53%description -l pl.UTF-8
54Glade jest narzędziem typu RAD (Rapid Application Development) do
55szybkiego i wygodnego tworzenia interfejsów użytkownika opartych o
56bibliotekę GTK+ i środowisko GNOME.
57
58Interfejsy użytkownika zaprojektowane w Glade są zapisywane w formacie
59XML i poprzez użycie obiektu GtkBuilder, z biblioteki GTK+, mogą być
60dynamicznie ładowane przez aplikacje.
61
62Poprzez użycie GtkBuilder, pliki XML Glade mogą być używane w licznych
63językach programowania, włączając C, C++, C#, Vala, Java, Perl, Python
64i inne.
65
66%package libs
67Summary: Glade library
68Summary(pl.UTF-8): Biblioteka Glade
69Group: X11/Libraries
397e55b8 70Requires: gtk+3 >= 3.12.0
dbfea978 71Requires: libxml2 >= 2.4.0
4fc8d865
MB
72
73%description libs
74Glade library.
75
76%description libs -l pl.UTF-8
77Biblioteka Glade.
78
79%package devel
80Summary: Header files for Glade library
81Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Glade
82Group: X11/Development/Libraries
83Requires: %{name}-libs = %{version}-%{release}
397e55b8 84Requires: gtk+3-devel >= 3.12.0
dbfea978 85Requires: libxml2-devel >= 2.4.0
4fc8d865
MB
86
87%description devel
88Header files for Glade library.
89
90%description devel -l pl.UTF-8
91Pliki nagłówkowe biblioteki Glade.
92
93%package static
94Summary: Static Glade library
95Summary(pl.UTF-8): Statyczna biblioteka Glade
96Group: X11/Development/Libraries
97Requires: %{name}-devel = %{version}-%{release}
98
99%description static
100Static Glade library.
101
102%description static -l pl.UTF-8
103Statyczna biblioteka Glade.
104
105%package apidocs
106Summary: Glade API documentation
107Summary(pl.UTF-8): Dokumentacja API biblioteki Glade
108Group: Documentation
109Requires: gtk-doc-common
35c62761
ER
110%if "%{_rpmversion}" >= "5"
111BuildArch: noarch
112%endif
4fc8d865
MB
113
114%description apidocs
115Glade API documentation.
116
117%description apidocs -l pl.UTF-8
118Dokumentacja API biblioteki Glade.
119
120%prep
121%setup -q
122
123%build
124%{__intltoolize}
125%{__libtoolize}
126%{__aclocal} -I m4
127%{__autoconf}
128%{__autoheader}
129%{__automake}
130%configure \
131 --disable-silent-rules \
132 %{__enable_disable apidocs gtk-doc} \
133 %{__enable_disable static_libs static} \
134 --with-html-dir=%{_gtkdocdir}
135%{__make}
136
137%install
138rm -rf $RPM_BUILD_ROOT
139
140%{__make} install \
141 DESTDIR=$RPM_BUILD_ROOT
142
dbfea978 143%{__rm} $RPM_BUILD_ROOT%{_libdir}/glade/modules/*.{a,la}
4fc8d865
MB
144
145%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
146
dbfea978 147%find_lang %{name} --with-gnome
4fc8d865
MB
148
149%clean
150rm -rf $RPM_BUILD_ROOT
151
152%post
153%update_icon_cache hicolor
f028f8ed 154%update_desktop_database_post
4fc8d865
MB
155
156%postun
157%update_icon_cache hicolor
f028f8ed 158%update_desktop_database_postun
4fc8d865 159
dbfea978 160%post libs -p /sbin/ldconfig
4fc8d865
MB
161%postun libs -p /sbin/ldconfig
162
163%files -f %{name}.lang
164%defattr(644,root,root,755)
dbfea978
JB
165# NOTE: COPYING contains general notes; full GPL and LGPL texts are in COPYING.{GPL,LGPL}
166%doc AUTHORS COPYING ChangeLog NEWS README TODO
4fc8d865
MB
167%attr(755,root,root) %{_bindir}/glade
168%attr(755,root,root) %{_bindir}/glade-previewer
169%dir %{_libdir}/glade
170%dir %{_libdir}/glade/modules
171%attr(755,root,root) %{_libdir}/glade/modules/libgladegtk.so
172%attr(755,root,root) %{_libdir}/glade/modules/libgladepython.so
173%{_datadir}/glade
174%{_desktopdir}/glade.desktop
dbfea978 175%{_iconsdir}/hicolor/*/apps/glade.png
3c11da34
AF
176%{_datadir}/appdata/glade.appdata.xml
177%{_mandir}/man1/glade-previewer.1*
178%{_mandir}/man1/glade.1*
4fc8d865
MB
179
180%files libs
181%defattr(644,root,root,755)
182%attr(755,root,root) %{_libdir}/libgladeui-2.so.*.*.*
3c11da34 183%attr(755,root,root) %ghost %{_libdir}/libgladeui-2.so.6
4fc8d865
MB
184%{_libdir}/girepository-1.0/Gladeui-2.0.typelib
185
186%files devel
187%defattr(644,root,root,755)
188%attr(755,root,root) %{_libdir}/libgladeui-2.so
189%{_datadir}/gir-1.0/Gladeui-2.0.gir
190%{_includedir}/libgladeui-2.0
191%{_pkgconfigdir}/gladeui-2.0.pc
192
193%if %{with static_libs}
194%files static
195%defattr(644,root,root,755)
196%{_libdir}/libgladeui-2.a
197%endif
198
199%if %{with apidocs}
200%files apidocs
201%defattr(644,root,root,755)
8e05174c 202%{_gtkdocdir}/gladeui-2
4fc8d865 203%endif
This page took 0.102649 seconds and 4 git commands to generate.