diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..737a79f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/xfce4-smartbookmark-plugin-*.tar.bz2 +/xfce4-smartbookmark-plugin-*.tar.xz diff --git a/Makefile b/Makefile deleted file mode 100644 index 13f3170..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: xfce4-smartbookmark-plugin -# $Id$ -NAME := xfce4-smartbookmark-plugin -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/changelog b/changelog new file mode 100644 index 0000000..6d655f5 --- /dev/null +++ b/changelog @@ -0,0 +1,167 @@ +* Sun Dec 22 2024 Mukundan Ragavan - 0.5.2-11 +- rebuild for xfce-4.20 + +* Fri Jul 26 2024 Miroslav Suchý - 0.5.2-10 +- convert license to SPDX + +* Sat Jul 20 2024 Fedora Release Engineering - 0.5.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 0.5.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jul 22 2023 Fedora Release Engineering - 0.5.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 0.5.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.5.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jan 22 2022 Fedora Release Engineering - 0.5.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.5.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Jan 28 2021 Fedora Release Engineering - 0.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Dec 24 2020 Mukundan Ragavan - 0.5.2-1 +- Update to 0.5.2 + +* Sat Aug 01 2020 Fedora Release Engineering - 0.5.1-4 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.5.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jan 31 2020 Fedora Release Engineering - 0.5.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Aug 13 2019 Mukundan Ragavan - 0.5.1-1 +- Update to 0.5.1 + +* Sat Jul 27 2019 Fedora Release Engineering - 0.5.0-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Feb 03 2019 Fedora Release Engineering - 0.5.0-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Aug 11 2018 Mukundan Ragavan - 0.5.0-20 +- Rebuilt (xfce 4.13) + +* Sat Jul 14 2018 Fedora Release Engineering - 0.5.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Feb 16 2018 Filipe Rosset - 0.5.0-6 +- Spec cleanup / modernization + +* Fri Feb 09 2018 Fedora Release Engineering - 0.5.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 0.5.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.5.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sat Nov 05 2016 Filipe Rosset - 0.5.0-1 +- Update to 0.5.0 +- [gtk3] Bump dependencies to check for libxfce4ui-2/libxfce4panel-2.0 +- Spec clean-up + +* Fri Feb 05 2016 Fedora Release Engineering - 0.4.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jun 19 2015 Fedora Release Engineering - 0.4.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri Mar 20 2015 Kevin Fenzi 0.4.6-2 +- Fix permissions on library so we get debuginfo. Fixes bug #1204275 + +* Tue Mar 10 2015 Kevin Fenzi 0.4.6-1 +- Update to 0.4.6 + +* Tue Mar 10 2015 Kevin Fenzi 0.4.5-2 +- Fix BuildRequires + +* Tue Mar 10 2015 Kevin Fenzi 0.4.5-1 +- Update to 0.4.5 + +* Sat Feb 28 2015 Kevin Fenzi 0.4.4-10 +- Rebuild for Xfce 4.12 + +* Mon Aug 18 2014 Fedora Release Engineering - 0.4.4-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 0.4.4-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 0.4.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Feb 15 2013 Fedora Release Engineering - 0.4.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Jul 22 2012 Fedora Release Engineering - 0.4.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sun Apr 15 2012 Kevin Fenzi - 0.4.4-4 +- Rebuild for Xfce 4.10(pre2) + +* Thu Apr 05 2012 Kevin Fenzi - 0.4.4-3 +- Rebuild for Xfce 4.10 + +* Sat Jan 14 2012 Fedora Release Engineering - 0.4.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Nov 01 2011 Christoph Wickert - 0.4.4-1 +- Update to 0.4.4 +- Drop upstream patches + +* Sun Jun 12 2011 Christoph Wickert - 0.4.2-13 +- Fix location of the desktop file (#711418) +- Update translations form Xfce transifex + +* Mon Feb 07 2011 Fedora Release Engineering - 0.4.2-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Jan 13 2011 Kevin Fenzi - 0.4.2-11 +- Add patch to link against libxfcegui4 (#564846) + +* Mon Jul 27 2009 Fedora Release Engineering - 0.4.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Fri Jul 03 2009 Christoph Wickert - 0.4.2-9 +- Fix path in desktop file (#509294) + +* Thu Feb 26 2009 Fedora Release Engineering - 0.4.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sun Jan 18 2009 Christoph Wickert - 0.4.2-7 +- Rebuild for Xfce 4.6 (Beta 3) + +* Mon Feb 18 2008 Fedora Release Engineering - 0.4.2-6 +- Autorebuild for GCC 4.3 + +* Sat Aug 25 2007 Christoph Wickert - 0.4.2-5 +- Rebuild for BuildID feature +- Update license tag + +* Sat Jun 09 2007 Christoph Wickert - 0.4.2-4 +- Multilib fix for desktop file (#228168). + +* Sat Apr 28 2007 Christoph Wickert - 0.4.2-3 +- Rebuild for Xfce 4.4.1 + +* Mon Jan 22 2007 Christoph Wickert - 0.4.2-2 +- Rebuild for Xfce 4.4. + +* Sat Sep 23 2006 Christoph Wickert - 0.4.2-1 +- Initial Fedora Extras version. diff --git a/sources b/sources index e69de29..61cf282 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (xfce4-smartbookmark-plugin-0.6.0.tar.xz) = b75371a4629a921735f2149382ebf5f6f77ab6e0dc0b6202246684c2e56b68266e5417d2adce64be5d7a4d66ef99a7f14e6ddf0aff4a7165f9aae454b112d390 diff --git a/xfce4-smartbookmark-plugin-0.6.0-redhat.patch b/xfce4-smartbookmark-plugin-0.6.0-redhat.patch new file mode 100644 index 0000000..96b5fa2 --- /dev/null +++ b/xfce4-smartbookmark-plugin-0.6.0-redhat.patch @@ -0,0 +1,24 @@ +--- a/src/smartbookmark.c ++++ b/src/smartbookmark.c +@@ -180,8 +180,8 @@ static t_search *search_new(XfcePanelPlugin *plugin) + gtk_widget_set_valign(GTK_WIDGET(search->box), GTK_ALIGN_CENTER); + + /* default options */ +- search->url = "https://bugs.debian.org/"; +- search->label_text = "BTS"; ++ search->url = "https://bugzilla.redhat.com/"; ++ search->label_text = "Bug #"; + search->size = 5; + search->hide_label = FALSE; + /* read config file options */ +@@ -216,8 +216,8 @@ static void search_read_config(t_search *search, const gchar* filename) + if( (rcfile = xfce_rc_simple_open(filename, TRUE) )) + { + xfce_rc_set_group(rcfile, NULL); +- search->url = g_strdup(xfce_rc_read_entry(rcfile,"url","https://bugs.debian.org/")); +- search->label_text = g_strdup(xfce_rc_read_entry(rcfile,"value","DBS")); ++ search->url = g_strdup(xfce_rc_read_entry(rcfile,"url","https://bugzilla.redhat.com/")); ++ search->label_text = g_strdup(xfce_rc_read_entry(rcfile,"value","Bug #")); + search->size = xfce_rc_read_int_entry(rcfile, "size", 5); + search->hide_label = xfce_rc_read_bool_entry(rcfile, "hidelabel", FALSE); + } diff --git a/xfce4-smartbookmark-plugin.spec b/xfce4-smartbookmark-plugin.spec new file mode 100644 index 0000000..667cfb3 --- /dev/null +++ b/xfce4-smartbookmark-plugin.spec @@ -0,0 +1,63 @@ +# Review at https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=219986 +# VCS https://gitlab.xfce.org/panel-plugins/xfce4-smartbookmark-plugin + +%global _hardened_build 1 +%global minor_version 0.6 +%global xfceversion 4.20 + +Name: xfce4-smartbookmark-plugin +Version: 0.6.0 +Release: %autorelease +Summary: Smart bookmarks for the Xfce panel + +License: GPL-2.0-or-later +URL: https://docs.xfce.org/panel-plugins/xfce4-smartbookmark-plugin/start +Source0: https://archive.xfce.org/src/panel-plugins/%{name}/%{minor_version}/%{name}-%{version}.tar.xz +# vendor specific patches +Patch: %{name}-%{version}-redhat.patch + +BuildRequires: gcc +BuildRequires: gettext +BuildRequires: libxfce4ui-devel >= %{xfceversion} +BuildRequires: libxfce4util-devel >= %{xfceversion} +BuildRequires: meson +BuildRequires: xfce4-panel-devel >= %{xfceversion} + +Requires: webclient +Requires: xfce4-panel >= %{xfceversion} + +%description +A plugin which allows you to do a search directly on Internet on sites like +Google or Red Hat Bugzilla. It allows you to send requests directly to your +browser and perform custom searches. + +%prep +%autosetup -p1 + + +%build +%meson +%meson_build + + +%install +%meson_install +# Rename non-standard hye locale to hy +if [ -d %{buildroot}%{_datadir}/locale/hye ]; then + mv %{buildroot}%{_datadir}/locale/hye %{buildroot}%{_datadir}/locale/hy +fi + +%find_lang %{name} + + +%check +%meson_test +%files -f %{name}.lang +%doc AUTHORS ChangeLog +%license COPYING +%{_libdir}/xfce4/panel/plugins/*.so +%{_datadir}/xfce4/panel/plugins/*.desktop + + +%changelog +%autochangelog