f5256c
Name:           glade
a6a035
Version:        3.20.2
d083a7
Release:        3%{?dist}
ad0884
Summary:        User Interface Designer for GTK+
f5256c
f5256c
# - /usr/bin/glade is GPLv2+
f5256c
# - /usr/bin/glade-previewer is LGPLv2+
f5256c
# - libgladeui-2.so, libgladegtk.so, and libgladepython.so all combine
f5256c
#   GPLv2+ and LGPLv2+ code, so the resulting binaries are GPLv2+
f5256c
License:        GPLv2+ and LGPLv2+
f5256c
URL:            http://glade.gnome.org/
57fa38
Source0:        http://ftp.gnome.org/pub/GNOME/sources/glade/3.20/glade-%{version}.tar.xz
f5256c
f5256c
BuildRequires:  chrpath
f5256c
BuildRequires:  desktop-file-utils
a96953
BuildRequires:  docbook-style-xsl
f5256c
BuildRequires:  gettext
f5256c
BuildRequires:  gtk3-devel
f5256c
BuildRequires:  intltool
8b469a
BuildRequires:  itstool
f5256c
BuildRequires:  libxml2-devel
f5256c
BuildRequires:  pygobject3-devel
14ea8a
BuildRequires:  python3-devel
a51436
BuildRequires:  /usr/bin/appstream-util
a96953
BuildRequires:  /usr/bin/xsltproc
f5256c
6bc975
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
f5256c
# The gtk3 version of glade was packaged under the name of 'glade3' for a
f5256c
# while. However, following upstream naming, 'glade3' package is now the gtk2
f5256c
# version and 'glade' package is the gtk3 one. The obsoletes are here to
f5256c
# provide seamless upgrade path from the gtk3 based 'glade3'.
f5256c
Obsoletes:      glade3 < 1:3.11.0-3
f5256c
f5256c
%description
f5256c
Glade is a RAD tool to enable quick and easy development of user interfaces for
f5256c
the GTK+ toolkit and the GNOME desktop environment.
f5256c
f5256c
The user interfaces designed in Glade are saved as XML, which can be used in
f5256c
numerous programming languages including C, C++, C#, Vala, Java, Perl, Python,
f5256c
and others.
f5256c
f5256c
f5256c
%package libs
f5256c
Summary:        Widget library for Glade UI designer
f5256c
Obsoletes:      glade3-libgladeui < 1:3.11.0-3
f5256c
f5256c
%description    libs
f5256c
The %{name}-libs package consists of the widgets that compose the Glade GUI as
f5256c
a separate library to ease the integration of Glade into other applications.
f5256c
f5256c
f5256c
%package devel
f5256c
Summary:        Development files for %{name}
6bc975
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
f5256c
Obsoletes:      glade3-libgladeui-devel < 1:3.11.0-3
f5256c
f5256c
%description    devel
f5256c
The %{name}-devel package contains libraries and header files for
f5256c
developing applications that use Glade widget library.
f5256c
f5256c
f5256c
%prep
f5256c
%setup -q
644ac9
f5256c
f5256c
%build
14ea8a
export PYTHON=%{__python3}
d1b788
%configure --disable-static
f5256c
f5256c
# Omit unused direct shared library dependencies.
f5256c
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
f5256c
f5256c
make %{?_smp_mflags}
f5256c
f5256c
f5256c
%install
b1ecea
%make_install
f5256c
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
f5256c
f5256c
# Remove rpaths.
f5256c
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/glade*
f5256c
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/glade/modules/*.so
f5256c
f5256c
%find_lang glade --with-gnome
f5256c
f5256c
f5256c
%check
a6a035
appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/metainfo/glade.appdata.xml
f5256c
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/glade.desktop
f5256c
f5256c
f5256c
%post libs -p /sbin/ldconfig
f5256c
f5256c
%postun libs -p /sbin/ldconfig
f5256c
f5256c
%files -f glade.lang
a1bb91
%license COPYING*
a1bb91
%doc AUTHORS NEWS README
f5256c
%{_bindir}/glade
f5256c
%{_bindir}/glade-previewer
f5256c
%{_datadir}/applications/glade.desktop
f5256c
%{_datadir}/icons/hicolor/*/apps/glade.png
7ce32a
%{_datadir}/icons/hicolor/scalable/apps/glade-symbolic.svg
a6a035
%{_datadir}/metainfo/glade.appdata.xml
a96953
%{_mandir}/man1/glade.1*
a96953
%{_mandir}/man1/glade-previewer*
f5256c
f5256c
%files libs
a1bb91
%license COPYING*
c99d14
%dir %{_libdir}/girepository-1.0
f5256c
%{_libdir}/girepository-1.0/Gladeui-2.0.typelib
f5256c
%dir %{_libdir}/glade/
f5256c
%dir %{_libdir}/glade/modules/
f5256c
%{_libdir}/glade/modules/libgladegtk.so
f5256c
%{_libdir}/glade/modules/libgladepython.so
f5256c
%{_libdir}/libgladeui-2.so.*
f5256c
%{_datadir}/glade/
f5256c
f5256c
%files devel
f5256c
%{_includedir}/libgladeui-2.0/
f5256c
%{_libdir}/libgladeui-2.so
f5256c
%{_libdir}/pkgconfig/gladeui-2.0.pc
c99d14
%dir %{_datadir}/gir-1.0
f5256c
%{_datadir}/gir-1.0/Gladeui-2.0.gir
f5256c
%doc %{_datadir}/gtk-doc/
f5256c
c99d14
f5256c
%changelog
d083a7
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.20.2-3
d083a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d083a7
14d53a
* Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.20.2-2
14d53a
- Remove obsolete scriptlets
14d53a
a6a035
* Fri Dec 01 2017 Kalev Lember <klember@redhat.com> - 3.20.2-1
a6a035
- Update to 3.20.2
a6a035
688bc7
* Thu Oct 12 2017 Kalev Lember <klember@redhat.com> - 3.20.1-1
688bc7
- Update to 3.20.1
c99d14
- Fix gir directory ownership
688bc7
036b9d
* Mon Oct 02 2017 Karsten Hopp <karsten@redhat.com> - 3.20.0-6
036b9d
- apply upstream patch from Jonh Wendell to fix g_ptr_array_find types and make it
036b9d
  build with latest glib2
036b9d
e57626
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.20.0-5
e57626
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e57626
48df5c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.20.0-4
48df5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
48df5c
9899d5
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.20.0-3
9899d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9899d5
d23964
* Mon Dec 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.20.0-2
d23964
- Rebuild for Python 3.6
d23964
57fa38
* Tue Mar 22 2016 Kalev Lember <klember@redhat.com> - 3.20.0-1
57fa38
- Update to 3.20.0
57fa38
6961d4
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.19.0-5
6961d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6961d4
Robert Kuska b9c437
* Thu Nov 05 2015 Robert Kuska <rkuska@redhat.com> - 3.19.0-4
Robert Kuska b9c437
- Rebuilt for Python3.5 rebuild
Robert Kuska b9c437
14ea8a
* Fri Jul 03 2015 Kalev Lember <klember@redhat.com> - 3.19.0-3
14ea8a
- Switch to Python 3 (#1238957)
b1ecea
- Use the make_install macro
9ed379
- Use upstream screenshots for appdata
a51436
- Validate appdata file
6bc975
- Tighten deps with the _isa macro
14ea8a
42d191
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.19.0-2
42d191
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
42d191
7ce32a
* Mon Jun 15 2015 Kalev Lember <kalevlember@gmail.com> - 3.19.0-1
7ce32a
- Update to 3.19.0
a1bb91
- Use license macro for COPYING files
7ce32a
Richard Hughes a18874
* Mon Mar 30 2015 Richard Hughes <rhughes@redhat.com> - 3.18.3-5
Richard Hughes a18874
- Use better AppData screenshots
Richard Hughes a18874
f5329b
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.18.3-4
f5329b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f5329b
787a9c
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 3.18.3-3
787a9c
- Rebuilt for gobject-introspection 1.41.4
787a9c
9c822e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.18.3-2
9c822e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9c822e
d2f47d
* Thu May 15 2014 Kalev Lember <kalevlember@gmail.com> - 3.18.3-1
d2f47d
- Update to 3.18.3
d2f47d
bf5050
* Wed Apr 16 2014 Kalev Lember <kalevlember@gmail.com> - 3.18.2-1
bf5050
- Update to 3.18.2
bf5050
79f24a
* Wed Mar 26 2014 Kalev Lember <kalevlember@gmail.com> - 3.18.1-1
79f24a
- Update to 3.18.1
79f24a
455e15
* Mon Mar 24 2014 Kalev Lember <kalevlember@gmail.com> - 3.18.0-1
455e15
- Update to 3.18.0
455e15
Richard Hughes e779b6
* Wed Jan 08 2014 Richard Hughes <rhughes@redhat.com> - 3.16.1-1
Richard Hughes e779b6
- Update to 3.16.1
Richard Hughes e779b6
Richard Hughes b163aa
* Wed Sep 25 2013 Richard Hughes <rhughes@redhat.com> - 3.16.0-1
Richard Hughes b163aa
- Update to 3.16.0
Richard Hughes b163aa
644ac9
* Wed Sep 18 2013 Kalev Lember <kalevlember@gmail.com> - 3.15.4-1
644ac9
- Update to 3.15.4
644ac9
c2b192
* Tue Sep 03 2013 Kalev Lember <kalevlember@gmail.com> - 3.15.3-1
c2b192
- Update to 3.15.3
c2b192
588f4a
* Sat Aug 10 2013 Kalev Lember <kalevlember@gmail.com> - 3.15.2-3.git9d3b3b3
588f4a
- Update to git snapshot to adapt to API changes in GTK+ 3.9.10
588f4a
- Add man pages
588f4a
5fb598
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.15.2-2
5fb598
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5fb598
117e77
* Fri Jun 21 2013 Kalev Lember <kalevlember@gmail.com> - 3.15.2-1
117e77
- Update to 3.15.2
117e77
Richard Hughes 76d413
* Fri May 10 2013 Richard Hughes <rhughes@redhat.com> - 3.15.1-1
Richard Hughes 76d413
- Update to 3.15.1
Richard Hughes 76d413
Richard Hughes da690f
* Mon Mar 18 2013 Richard Hughes <rhughes@redhat.com> - 3.15.0-1
Richard Hughes da690f
- Update to 3.15.0
Richard Hughes da690f
45102c
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.14.2-3
45102c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
45102c
ad0884
* Wed Dec 05 2012 Kalev Lember <kalevlember@gmail.com> - 3.14.2-2
ad0884
- Revise the summary for consistency with the parallel installable
ad0884
  glade2/glade3 packages (#882557)
ad0884
851d2d
* Mon Nov 26 2012 Kalev Lember <kalevlember@gmail.com> - 3.14.2-1
851d2d
- Update to 3.14.2
851d2d
408f9a
* Tue Oct 16 2012 Kalev Lember <kalevlember@gmail.com> - 3.14.1-1
408f9a
- Update to 3.14.1
408f9a
d1b788
* Wed Sep 19 2012 Kalev Lember <kalevlember@gmail.com> - 3.14.0-1
d1b788
- Update to 3.14.0
d1b788
- Remove the unrecognized --disable-scrollkeeper option
d1b788
6f3054
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.13.0-2
6f3054
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6f3054
96c932
* Sun May 06 2012 Kalev Lember <kalevlember@gmail.com> - 3.13.0-1
96c932
- Update to 3.13.0
96c932
b11d43
* Sun May 06 2012 Kalev Lember <kalevlember@gmail.com> - 3.12.1-1
b11d43
- Update to 3.12.1
b11d43
f5256c
* Thu Apr 12 2012 Kalev Lember <kalevlember@gmail.com> - 3.12.0-3
f5256c
- Update the spec file comments about licensing and simplify the License tag
f5256c
- Install the typelib in -libs subpackage
f5256c
f5256c
* Fri Apr 06 2012 Kalev Lember <kalevlember@gmail.com> - 3.12.0-2
f5256c
- Review fixes (#806093)
f5256c
- Use find_lang --with-gnome for including help files
f5256c
- Include license files also in the main package in addition to -libs
f5256c
f5256c
* Wed Apr 04 2012 Kalev Lember <kalevlember@gmail.com> - 3.12.0-1
f5256c
- Update to 3.12.0
f5256c
f5256c
* Thu Mar 22 2012 Kalev Lember <kalevlember@gmail.com> - 3.11.0-1
f5256c
- Initial packaging based on Fedora glade3
f5256c
- Rename the package to glade; added obsoletes for upgrade path
f5256c
- Spec clean up for review