Blob Blame History Raw
Name:           glade
Version:        3.12.2
Release:        3%{?dist}
Summary:        User Interface Designer for GTK+ and GNOME

# - /usr/bin/glade is GPLv2+
# - /usr/bin/glade-previewer is LGPLv2+
# -,, and all combine
#   GPLv2+ and LGPLv2+ code, so the resulting binaries are GPLv2+
License:        GPLv2+ and LGPLv2+
# Avoid changing the libgladui soname; no interface changes in the library
# compared to 3.12.1 release.
Patch0:         glade-3.12.2-soname.patch
Patch1:         glade-3.12.2-button-properties.patch

BuildRequires:  chrpath
BuildRequires:  desktop-file-utils
BuildRequires:  gettext
BuildRequires:  gnome-doc-utils
BuildRequires:  gtk3-devel
BuildRequires:  intltool
BuildRequires:  libxml2-devel
BuildRequires:  pygobject3-devel
BuildRequires:  python2-devel

# For patch0:
BuildRequires:  autoconf automake libtool
BuildRequires:  gnome-common

Requires:       %{name}-libs = %{version}-%{release}
# The gtk3 version of glade was packaged under the name of 'glade3' for a
# while. However, following upstream naming, 'glade3' package is now the gtk2
# version and 'glade' package is the gtk3 one. The obsoletes are here to
# provide seamless upgrade path from the gtk3 based 'glade3'.
Obsoletes:      glade3 < 1:3.11.0-3

Glade is a RAD tool to enable quick and easy development of user interfaces for
the GTK+ toolkit and the GNOME desktop environment.

The user interfaces designed in Glade are saved as XML, which can be used in
numerous programming languages including C, C++, C#, Vala, Java, Perl, Python,
and others.

%package libs
Summary:        Widget library for Glade UI designer
Obsoletes:      glade3-libgladeui < 1:3.11.0-3

%description    libs
The %{name}-libs package consists of the widgets that compose the Glade GUI as
a separate library to ease the integration of Glade into other applications.

%package devel
Summary:        Development files for %{name}
Requires:       %{name}-libs = %{version}-%{release}
Obsoletes:      glade3-libgladeui-devel < 1:3.11.0-3

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use Glade widget library.

%setup -q
%patch0 -p1 -b .soname
%patch1 -p1 -b .button_propeties

%configure \
  --disable-static \

# Omit unused direct shared library dependencies.
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

make %{?_smp_mflags}

make install INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name "*.la" -delete

# Remove rpaths.
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/glade*
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/glade/modules/*.so

%find_lang glade --with-gnome

desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/glade.desktop

update-desktop-database &> /dev/null || :
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

update-desktop-database &> /dev/null || :
if [ $1 -eq 0 ] ; then
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :

gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :

%post libs -p /sbin/ldconfig

%postun libs -p /sbin/ldconfig

%files -f glade.lang

%files libs
%dir %{_libdir}/glade/
%dir %{_libdir}/glade/modules/

%files devel
%doc %{_datadir}/gtk-doc/

* Mon Oct 15 2012 Kalev Lember <> - 3.12.2-3
- Backport a patch for GtkButton properties sensitivity (#863361)

* Sun Sep 23 2012 Kalev Lember <> - 3.12.2-2
- Avoid changing the libgladui soname

* Thu Sep 20 2012 Kalev Lember <> - 3.12.2-1
- Update to 3.12.2

* Sun May 06 2012 Kalev Lember <> - 3.12.1-1
- Update to 3.12.1

* Thu Apr 12 2012 Kalev Lember <> - 3.12.0-3
- Update the spec file comments about licensing and simplify the License tag
- Install the typelib in -libs subpackage

* Fri Apr 06 2012 Kalev Lember <> - 3.12.0-2
- Review fixes (#806093)
- Use find_lang --with-gnome for including help files
- Include license files also in the main package in addition to -libs

* Wed Apr 04 2012 Kalev Lember <> - 3.12.0-1
- Update to 3.12.0

* Thu Mar 22 2012 Kalev Lember <> - 3.11.0-1
- Initial packaging based on Fedora glade3
- Rename the package to glade; added obsoletes for upgrade path
- Spec clean up for review