Browse Source

pal package creation

Signed-off-by: tuibuilder_pel7x64builder0 <tuibuilder@powerel.org>
master
tuibuilder_pel7x64builder0 6 years ago
parent
commit
df2025e153
  1. 44
      SOURCES/pal-0.4.3-bz1037238.patch
  2. 117
      SPECS/pal.spec

44
SOURCES/pal-0.4.3-bz1037238.patch

@ -0,0 +1,44 @@ @@ -0,0 +1,44 @@
diff --git a/src/input.c b/src/input.c
index 79db485..92bad36 100644
--- a/src/input.c
+++ b/src/input.c
@@ -463,7 +463,7 @@ static gboolean get_file_to_load(gchar* file, gchar* pal_file, gboolean show_err
return FALSE;
}
else
- sprintf(pal_file, file);
+ sprintf(pal_file, "%s", file);
}
else
@@ -618,7 +618,7 @@ GHashTable* load_files()
FILE* pal_file_handle = NULL;
if(!get_file_to_load(settings->pal_file, pal_file, FALSE))
- sprintf(pal_file, settings->pal_file);
+ sprintf(pal_file, "%s", settings->pal_file);
pal_file_handle = get_file_handle(pal_file, TRUE);
if(pal_file_handle != NULL)
diff --git a/src/output.c b/src/output.c
index 97aaa0f..9806089 100644
--- a/src/output.c
+++ b/src/output.c
@@ -249,7 +249,7 @@ static void pal_output_text_week(GDate* date, gboolean force_month_label,
pal_output_fg(BRIGHT, color, utf8_buf);
}
else
- g_print(utf8_buf);
+ g_print("%s", utf8_buf);
if(g_date_compare(date,today) == 0) /* make today bright */
@@ -270,7 +270,7 @@ static void pal_output_text_week(GDate* date, gboolean force_month_label,
}
else
- g_print(utf8_buf);
+ g_print("%s", utf8_buf);
/* print extra space between days */

117
SPECS/pal.spec

@ -0,0 +1,117 @@ @@ -0,0 +1,117 @@
Summary: Command line calendar that displays holidays and events
Name: pal
Version: 0.4.3
Release: 21%{?dist}
License: GPLv2+
Url: http://palcal.sourceforge.net
Source0: http://downloads.sourceforge.net/palcal/pal-%{version}.tgz

Patch0: pal-0.4.3-bz1037238.patch

BuildRequires: gcc
BuildRequires: glib2-devel
BuildRequires: ncurses-devel
BuildRequires: readline-devel
BuildRequires: gettext

%description
Pal is command-line calendar program for Unix/Linux that can keep track of
events. It has similarities with the Unix cal command, the more complex GNU
gcal program, and the calendar program distributed with the BSDs.

%prep
%setup -q
sed -i 's/-o\ root//g' src/Makefile
sed -i 's/-o\ root//g' src/convert/Makefile
sed -i 's/G_CONST_RETURN/const/' src/*.c
%patch0 -p1

%build
make DEBUG=1 -C src OPT="$RPM_OPT_FLAGS"

%install
make -C src DESTDIR="$RPM_BUILD_ROOT" install-no-rm
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}*
%find_lang %{name}

%files -f %{name}.lang
%doc doc/example.css COPYING ChangeLog
%config(noreplace) %{_sysconfdir}/pal.conf
%{_bindir}/pal
%{_bindir}/vcard2pal
%{_datadir}/pal
%{_datadir}/man/man1/pal.1.gz
%{_datadir}/man/man1/vcard2pal.1.gz

%changelog
* Sun Feb 17 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.3-21
- Rebuild for readline 8.0

* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.4.3-14
- Rebuild for readline 7.x

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Tue Dec 03 2013 Martin Cermak <mcermak@redhat.com> 0.4.3-9
- Fix FTBFS when building with -Werror=format-security (#1037238)

* Mon Aug 05 2013 Hans de Goede <hdegoede@redhat.com> - 0.4.3-8
- Fix FTBFS caused by unversioned docdir change (#992423)

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild


* Mon Aug 8 2011 Martin Cermak <mcermak@redhat.com> 0.4.3-3
- Fixed the FTBFS problem bz715789

* Sun May 1 2011 Martin Cermak <mcermak@redhat.com> 0.4.3-2
- Description modified.
- Standard URL for SF downloads used in Source0
- Fixed the empty-debuginfo-package error
- License tag fixed (GPLv2 changed to GPLv2+)
- Removed unnecessary -n switch from the setup macro
- Defattr fixed
- Relevant docs packaged (example.css, COPYING, ChangeLog)


* Tue Apr 19 2011 Martin Cermak <mcermak@redhat.com> 0.4.3-1
- Packaged for Fedora

Loading…
Cancel
Save