diff --git a/.glade.metadata b/.glade.metadata new file mode 100644 index 0000000..2bd9440 --- /dev/null +++ b/.glade.metadata @@ -0,0 +1 @@ +846b679f9faa4352672d9d9011bf9cc1ae36ce90 SOURCES/glade-3.15.0.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/0001-Add-man-pages.patch b/SOURCES/0001-Add-man-pages.patch new file mode 100644 index 0000000..6070104 --- /dev/null +++ b/SOURCES/0001-Add-man-pages.patch @@ -0,0 +1,307 @@ +diff -up glade-3.15.0/configure.ac.man-pages glade-3.15.0/configure.ac +--- glade-3.15.0/configure.ac.man-pages 2013-03-06 15:58:47.000000000 -0500 ++++ glade-3.15.0/configure.ac 2013-06-26 15:02:30.060301314 -0400 +@@ -195,6 +195,22 @@ AM_CONDITIONAL(BUILD_PYTHON, test x"$hav + + YELP_HELP_INIT + ++# ================================================================== ++# Man pages (requires xsltproc) ++# ================================================================== ++ ++AC_ARG_ENABLE(man-pages, ++ AC_HELP_STRING([--enable-man-pages], ++ [build manual pages]),, ++ enable_man_pages=yes) ++if test x$enable_man_pages = xyes; then ++ AC_PATH_PROG([XSLTPROC], [xsltproc]) ++ if test x$XSLTPROC = x; then ++ AC_MSG_ERROR([xsltproc is required to build manual pages]) ++ fi ++fi ++AM_CONDITIONAL(BUILD_MAN_PAGES, test x$enable_man_pages = xyes) ++ + dnl ================================================================ + dnl Check for windows + dnl ================================================================ +@@ -298,6 +314,7 @@ po/Makefile.in + doc/Makefile + doc/version.xml + help/Makefile ++man/Makefile + build/mingw-w64/glade.nsi + ]) + +@@ -314,4 +331,5 @@ Configuration: + Introspection Data: ${found_introspection} + + Build Reference Manual: ${enable_gtk_doc} ++ Build Manual Pages: ${enable_man_pages} + " +diff -up glade-3.15.0/Makefile.am.man-pages glade-3.15.0/Makefile.am +--- glade-3.15.0/Makefile.am.man-pages 2013-06-26 15:04:34.414063451 -0400 ++++ glade-3.15.0/Makefile.am 2013-06-26 15:05:09.949281239 -0400 +@@ -1,6 +1,10 @@ + ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} + + SUBDIRS = po data gladeui src plugins doc help ++if BUILD_MAN_PAGES ++SUBDIRS += man ++endif ++DIST_SUBDIRS = po data gladeui src plugins doc help man + + EXTRA_DIST = \ + autogen.sh \ +diff -up glade-3.15.0/man/glade-previewer.xml.man-pages glade-3.15.0/man/glade-previewer.xml +--- glade-3.15.0/man/glade-previewer.xml.man-pages 2013-06-26 15:02:30.061301320 -0400 ++++ glade-3.15.0/man/glade-previewer.xml 2013-06-26 15:02:30.060301314 -0400 +@@ -0,0 +1,105 @@ ++ ++ ++ ++ ++ ++ ++ glade-previewer ++ GNOME ++ ++ ++ ++ Maintainer ++ Tristan Van Berkom ++ Van Berkom ++ tristan.van.berkom@gmail.com ++ ++ ++ Maintainer ++ Juan Pablo ++ Ugarte ++ juanpablougarte@gmail.com ++ ++ ++ ++ ++ ++ ++ glade-previewer ++ 1 ++ User Commands ++ ++ ++ ++ glade-previewer ++ Preview glade user interface definitions ++ ++ ++ ++ ++ glade-previewer OPTION ++ ++ ++ ++ ++ Description ++ ++ glade-previewer is a tool that ++ can load and display a User Interface that has been defined ++ with glade. glade itself uses glade-previewer, but it ++ can also be used as a standalone utility. ++ ++ ++ ++ Options ++ ++ The following options can be specified: ++ ++ ++ ++ , ++ ++ Name of the file to preview. ++ ++ ++ ++ ++ , ++ ++ Name of the toplevel to preview. ++ ++ ++ ++ , ++ ++ Listen on standard input. ++ ++ ++ ++ , ++ ++ Output version information and exit. ++ ++ ++ ++ ++ ++ X display to use. ++ ++ ++ ++ ++ One of the or ++ options has to be specified. ++ ++ ++ ++ ++ See Also ++ ++ glade1 ++ ++ ++ ++ +diff -up glade-3.15.0/man/glade.xml.man-pages glade-3.15.0/man/glade.xml +--- glade-3.15.0/man/glade.xml.man-pages 2013-06-26 15:02:30.061301320 -0400 ++++ glade-3.15.0/man/glade.xml 2013-06-26 15:02:30.061301320 -0400 +@@ -0,0 +1,114 @@ ++ ++ ++ ++ ++ ++ ++ glade ++ GNOME ++ ++ ++ ++ Maintainer ++ Tristan Van Berkom ++ Van Berkom ++ tristan.van.berkom@gmail.com ++ ++ ++ Maintainer ++ Juan Pablo ++ Ugarte ++ juanpablougarte@gmail.com ++ ++ ++ ++ ++ ++ ++ glade ++ 1 ++ User Commands ++ ++ ++ ++ glade ++ Create GTK+ user interfaces ++ ++ ++ ++ ++ glade OPTION FILE ++ ++ ++ ++ ++ Description ++ ++ glade is a tool to create or edit ++ user interfaces for GTK+ or GNOME applications. It saves ++ the user interface descriptions in xml files which can be ++ read by the GtkBuilder API that is part of GTK+. ++ ++ ++ ++ Options ++ ++ The following options can be specified: ++ ++ ++ ++ , ++ ++ Show help options. ++ ++ ++ ++ ++ ++ Show all help options. ++ ++ ++ ++ ++ ++ Show Glade debug options. ++ ++ ++ ++ ++ ++ Show GTK+ options. ++ ++ ++ ++ ++ ++ Output version information ++ and exit. ++ ++ ++ ++ ++ ++ Disable devhelp integration. ++ ++ ++ ++ ++ ++ X display to use. ++ ++ ++ ++ ++ ++ ++ ++ See Also ++ ++ devhelp1 ++ ++ ++ ++ +diff -up glade-3.15.0/man/Makefile.am.man-pages glade-3.15.0/man/Makefile.am +--- glade-3.15.0/man/Makefile.am.man-pages 2013-06-26 15:02:30.061301320 -0400 ++++ glade-3.15.0/man/Makefile.am 2013-06-26 15:02:30.061301320 -0400 +@@ -0,0 +1,22 @@ ++XSLTPROC_FLAGS = \ ++ --nonet \ ++ --stringparam man.output.quietly 1 \ ++ --stringparam funcsynopsis.style ansi \ ++ --stringparam man.th.extra1.suppress 1 \ ++ --stringparam man.authors.section.enabled 0 \ ++ --stringparam man.copyright.section.enabled 0 ++ ++.xml.1: ++ $(AM_V_GEN) $(XSLTPROC) $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< ++ ++man_MANS = \ ++ glade.1 \ ++ glade-previewer.1 ++ ++xml_files = $(man_MANS:.1=.xml) ++ ++EXTRA_DIST = $(xml_files) ++ ++DISTCLEANFILES = $(man_MANS) ++ ++-include $(top_srcdir)/git.mk diff --git a/SOURCES/glade-3.15.0-keywords.patch b/SOURCES/glade-3.15.0-keywords.patch new file mode 100644 index 0000000..39ca928 --- /dev/null +++ b/SOURCES/glade-3.15.0-keywords.patch @@ -0,0 +1,26 @@ +From 5abd0de8ab3ddb6a4d7594cd73700ca12f23e117 Mon Sep 17 00:00:00 2001 +From: Richard Hughes +Date: Tue, 19 Mar 2013 08:47:51 +0000 +Subject: [PATCH] Fix the Malayalam translation + +Fixes: Keywords[ml] in group 'Desktop Entry' does not have a semicolon (';') as trailing character. +--- + po/ml.po | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/po/ml.po b/po/ml.po +index 1a7e867..e257ee5 100644 +--- a/po/ml.po ++++ b/po/ml.po +@@ -40,7 +40,7 @@ msgstr "GTK+ പ്റോഗ്റാമുകള്‍ക്കുളള യൂ + + #: ../data/glade.desktop.in.in.h:5 + msgid "GUI designer;user interface;ui builder;" +-msgstr "ജി യു ഐ ഡിസൈനര്‍;യുസര്‍ ഇന്റര്‍ഫേസ്;യു ഐ ബില്‍ടാര്‍ " ++msgstr "ജി യു ഐ ഡിസൈനര്‍;യുസര്‍ ഇന്റര്‍ഫേസ്;യു ഐ ബില്‍ടാര്‍;" + + #: ../src/glade.glade.h:1 + msgid "Select" +-- +1.8.1.4 + diff --git a/SPECS/glade.spec b/SPECS/glade.spec new file mode 100644 index 0000000..2c58da7 --- /dev/null +++ b/SPECS/glade.spec @@ -0,0 +1,201 @@ +%global _changelog_trimtime %(date +%s -d "1 year ago") + + +Name: glade +Version: 3.15.0 +Release: 3%{?dist} +Summary: User Interface Designer for GTK+ + +# - /usr/bin/glade is GPLv2+ +# - /usr/bin/glade-previewer is LGPLv2+ +# - libgladeui-2.so, libgladegtk.so, and libgladepython.so all combine +# GPLv2+ and LGPLv2+ code, so the resulting binaries are GPLv2+ +License: GPLv2+ and LGPLv2+ +URL: http://glade.gnome.org/ +Source0: http://ftp.gnome.org/pub/GNOME/sources/glade/3.15/glade-%{version}.tar.xz +Patch0: glade-3.15.0-keywords.patch +Patch1: 0001-Add-man-pages.patch + +BuildRequires: chrpath +BuildRequires: desktop-file-utils +BuildRequires: gettext +BuildRequires: gtk3-devel +BuildRequires: intltool +BuildRequires: itstool +BuildRequires: libxml2-devel +BuildRequires: pygobject3-devel +BuildRequires: python2-devel +BuildRequires: docbook-style-xsl +BuildRequires: libxslt +# BRs for autoreconf +BuildRequires: autoconf automake libtool +BuildRequires: intltool +BuildRequires: gnome-common +BuildRequires: yelp-tools + +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 + +%description +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. + + +%prep +%setup -q +%patch0 -p1 -b .keywords +%patch1 -p1 -b .man-pages + +aclocal +autoconf +automake + +%build +%configure --disable-static + +# Omit unused direct shared library dependencies. +sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + +make %{?_smp_mflags} + + +%install +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 + + +%check +desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/glade.desktop + + +%post +update-desktop-database &> /dev/null || : +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + +%postun +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 || : +fi + +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + +%post libs -p /sbin/ldconfig + +%postun libs -p /sbin/ldconfig + + +%files -f glade.lang +%doc AUTHORS COPYING* NEWS README +%{_bindir}/glade +%{_bindir}/glade-previewer +%{_datadir}/applications/glade.desktop +%{_datadir}/icons/hicolor/*/apps/glade.png +%{_mandir}/man1/glade.1.gz +%{_mandir}/man1/glade-previewer.1.gz + +%files libs +%doc COPYING* +%{_libdir}/girepository-1.0/Gladeui-2.0.typelib +%dir %{_libdir}/glade/ +%dir %{_libdir}/glade/modules/ +%{_libdir}/glade/modules/libgladegtk.so +%{_libdir}/glade/modules/libgladepython.so +%{_libdir}/libgladeui-2.so.* +%{_datadir}/glade/ + +%files devel +%{_includedir}/libgladeui-2.0/ +%{_libdir}/libgladeui-2.so +%{_libdir}/pkgconfig/gladeui-2.0.pc +%{_datadir}/gir-1.0/Gladeui-2.0.gir +%doc %{_datadir}/gtk-doc/ + +%changelog +* Tue Jul 16 2013 Matthias Clasen - 3.15.0-3 +- Fix source url + +* Wed Jun 26 2013 Matthias Clasen - 3.15.0-2 +- Add man pages +- Trim %%changelog + +* Mon Mar 18 2013 Richard Hughes - 3.15.0-1 +- Update to 3.15.0 + +* Wed Feb 13 2013 Fedora Release Engineering - 3.14.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Dec 05 2012 Kalev Lember - 3.14.2-2 +- Revise the summary for consistency with the parallel installable + glade2/glade3 packages (#882557) + +* Mon Nov 26 2012 Kalev Lember - 3.14.2-1 +- Update to 3.14.2 + +* Tue Oct 16 2012 Kalev Lember - 3.14.1-1 +- Update to 3.14.1 + +* Wed Sep 19 2012 Kalev Lember - 3.14.0-1 +- Update to 3.14.0 +- Remove the unrecognized --disable-scrollkeeper option + +* Thu Jul 19 2012 Fedora Release Engineering - 3.13.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sun May 06 2012 Kalev Lember - 3.13.0-1 +- Update to 3.13.0 + +* 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