Blame SPECS/glade.spec

6f00ef
%global _changelog_trimtime %(date +%s -d "1 year ago")
6f00ef
6f00ef
6f00ef
Name:           glade
6f00ef
Version:        3.15.0
009113
Release:        5%{?dist}
6f00ef
Summary:        User Interface Designer for GTK+
6f00ef
6f00ef
# - /usr/bin/glade is GPLv2+
6f00ef
# - /usr/bin/glade-previewer is LGPLv2+
6f00ef
# - libgladeui-2.so, libgladegtk.so, and libgladepython.so all combine
6f00ef
#   GPLv2+ and LGPLv2+ code, so the resulting binaries are GPLv2+
6f00ef
License:        GPLv2+ and LGPLv2+
6f00ef
URL:            http://glade.gnome.org/
6f00ef
Source0:        http://ftp.gnome.org/pub/GNOME/sources/glade/3.15/glade-%{version}.tar.xz
6f00ef
Patch0:         glade-3.15.0-keywords.patch
6f00ef
Patch1:         0001-Add-man-pages.patch
6f00ef
6f00ef
BuildRequires:  chrpath
6f00ef
BuildRequires:  desktop-file-utils
6f00ef
BuildRequires:  gettext
6f00ef
BuildRequires:  gtk3-devel
6f00ef
BuildRequires:  intltool
6f00ef
BuildRequires:  itstool
6f00ef
BuildRequires:  libxml2-devel
6f00ef
BuildRequires:  pygobject3-devel
6f00ef
BuildRequires:  python2-devel
6f00ef
BuildRequires:  docbook-style-xsl
6f00ef
BuildRequires:  libxslt
6f00ef
# BRs for autoreconf
6f00ef
BuildRequires:  autoconf automake libtool
6f00ef
BuildRequires:  intltool
6f00ef
BuildRequires:  gnome-common
6f00ef
BuildRequires:  yelp-tools
6f00ef
6f00ef
Requires:       %{name}-libs = %{version}-%{release}
6f00ef
# The gtk3 version of glade was packaged under the name of 'glade3' for a
6f00ef
# while. However, following upstream naming, 'glade3' package is now the gtk2
6f00ef
# version and 'glade' package is the gtk3 one. The obsoletes are here to
6f00ef
# provide seamless upgrade path from the gtk3 based 'glade3'.
6f00ef
Obsoletes:      glade3 < 1:3.11.0-3
6f00ef
6f00ef
%description
6f00ef
Glade is a RAD tool to enable quick and easy development of user interfaces for
6f00ef
the GTK+ toolkit and the GNOME desktop environment.
6f00ef
6f00ef
The user interfaces designed in Glade are saved as XML, which can be used in
6f00ef
numerous programming languages including C, C++, C#, Vala, Java, Perl, Python,
6f00ef
and others.
6f00ef
6f00ef
6f00ef
%package libs
6f00ef
Summary:        Widget library for Glade UI designer
6f00ef
Obsoletes:      glade3-libgladeui < 1:3.11.0-3
6f00ef
6f00ef
%description    libs
6f00ef
The %{name}-libs package consists of the widgets that compose the Glade GUI as
6f00ef
a separate library to ease the integration of Glade into other applications.
6f00ef
6f00ef
6f00ef
%package devel
6f00ef
Summary:        Development files for %{name}
6f00ef
Requires:       %{name}-libs = %{version}-%{release}
6f00ef
Obsoletes:      glade3-libgladeui-devel < 1:3.11.0-3
6f00ef
6f00ef
%description    devel
6f00ef
The %{name}-devel package contains libraries and header files for
6f00ef
developing applications that use Glade widget library.
6f00ef
6f00ef
6f00ef
%prep
6f00ef
%setup -q
6f00ef
%patch0 -p1 -b .keywords
6f00ef
%patch1 -p1 -b .man-pages
6f00ef
6f00ef
aclocal
6f00ef
autoconf
6f00ef
automake
6f00ef
6f00ef
%build
6f00ef
%configure --disable-static
6f00ef
6f00ef
# Omit unused direct shared library dependencies.
6f00ef
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
6f00ef
6f00ef
make %{?_smp_mflags}
6f00ef
6f00ef
6f00ef
%install
6f00ef
make install INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT
6f00ef
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
6f00ef
6f00ef
# Remove rpaths.
6f00ef
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/glade*
6f00ef
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/glade/modules/*.so
6f00ef
6f00ef
%find_lang glade --with-gnome
6f00ef
6f00ef
6f00ef
%check
6f00ef
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/glade.desktop
6f00ef
6f00ef
6f00ef
%post
6f00ef
update-desktop-database &> /dev/null || :
6f00ef
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
6f00ef
6f00ef
%postun
6f00ef
update-desktop-database &> /dev/null || :
6f00ef
if [ $1 -eq 0 ] ; then
6f00ef
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
6f00ef
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
6f00ef
fi
6f00ef
6f00ef
%posttrans
6f00ef
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
6f00ef
6f00ef
%post libs -p /sbin/ldconfig
6f00ef
6f00ef
%postun libs -p /sbin/ldconfig
6f00ef
6f00ef
6f00ef
%files -f glade.lang
6f00ef
%doc AUTHORS COPYING* NEWS README
6f00ef
%{_bindir}/glade
6f00ef
%{_bindir}/glade-previewer
6f00ef
%{_datadir}/applications/glade.desktop
6f00ef
%{_datadir}/icons/hicolor/*/apps/glade.png
6f00ef
%{_mandir}/man1/glade.1.gz
6f00ef
%{_mandir}/man1/glade-previewer.1.gz
6f00ef
6f00ef
%files libs
6f00ef
%doc COPYING*
6f00ef
%{_libdir}/girepository-1.0/Gladeui-2.0.typelib
6f00ef
%dir %{_libdir}/glade/
6f00ef
%dir %{_libdir}/glade/modules/
6f00ef
%{_libdir}/glade/modules/libgladegtk.so
6f00ef
%{_libdir}/glade/modules/libgladepython.so
6f00ef
%{_libdir}/libgladeui-2.so.*
6f00ef
%{_datadir}/glade/
6f00ef
6f00ef
%files devel
6f00ef
%{_includedir}/libgladeui-2.0/
6f00ef
%{_libdir}/libgladeui-2.so
6f00ef
%{_libdir}/pkgconfig/gladeui-2.0.pc
6f00ef
%{_datadir}/gir-1.0/Gladeui-2.0.gir
6f00ef
%doc %{_datadir}/gtk-doc/
6f00ef
6f00ef
%changelog
009113
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.15.0-5
009113
- Mass rebuild 2014-01-24
009113
009113
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.15.0-4
009113
- Mass rebuild 2013-12-27
009113
6f00ef
* Tue Jul 16 2013 Matthias Clasen <mclasen@redhat.com> - 3.15.0-3
6f00ef
- Fix source url
6f00ef
6f00ef
* Wed Jun 26 2013 Matthias Clasen <mclasen@redhat.com> - 3.15.0-2
6f00ef
- Add man pages
6f00ef
- Trim %%changelog
6f00ef
6f00ef
* Mon Mar 18 2013 Richard Hughes <rhughes@redhat.com> - 3.15.0-1
6f00ef
- Update to 3.15.0
6f00ef
6f00ef
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.14.2-3
6f00ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6f00ef
6f00ef
* Wed Dec 05 2012 Kalev Lember <kalevlember@gmail.com> - 3.14.2-2
6f00ef
- Revise the summary for consistency with the parallel installable
6f00ef
  glade2/glade3 packages (#882557)
6f00ef
6f00ef
* Mon Nov 26 2012 Kalev Lember <kalevlember@gmail.com> - 3.14.2-1
6f00ef
- Update to 3.14.2
6f00ef
6f00ef
* Tue Oct 16 2012 Kalev Lember <kalevlember@gmail.com> - 3.14.1-1
6f00ef
- Update to 3.14.1
6f00ef
6f00ef
* Wed Sep 19 2012 Kalev Lember <kalevlember@gmail.com> - 3.14.0-1
6f00ef
- Update to 3.14.0
6f00ef
- Remove the unrecognized --disable-scrollkeeper option
6f00ef
6f00ef
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.13.0-2
6f00ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6f00ef
6f00ef
* Sun May 06 2012 Kalev Lember <kalevlember@gmail.com> - 3.13.0-1
6f00ef
- Update to 3.13.0
6f00ef
6f00ef
* Sun May 06 2012 Kalev Lember <kalevlember@gmail.com> - 3.12.1-1
6f00ef
- Update to 3.12.1
6f00ef
6f00ef
* Thu Apr 12 2012 Kalev Lember <kalevlember@gmail.com> - 3.12.0-3
6f00ef
- Update the spec file comments about licensing and simplify the License tag
6f00ef
- Install the typelib in -libs subpackage
6f00ef
6f00ef
* Fri Apr 06 2012 Kalev Lember <kalevlember@gmail.com> - 3.12.0-2
6f00ef
- Review fixes (#806093)
6f00ef
- Use find_lang --with-gnome for including help files
6f00ef
- Include license files also in the main package in addition to -libs
6f00ef
6f00ef
* Wed Apr 04 2012 Kalev Lember <kalevlember@gmail.com> - 3.12.0-1
6f00ef
- Update to 3.12.0
6f00ef
6f00ef
* Thu Mar 22 2012 Kalev Lember <kalevlember@gmail.com> - 3.11.0-1
6f00ef
- Initial packaging based on Fedora glade3
6f00ef
- Rename the package to glade; added obsoletes for upgrade path
6f00ef
- Spec clean up for review