Browse Source

timeline package creation

Signed-off-by: guibuilder_pel7x64builder0 <guibuilder@powerel.org>
master
guibuilder_pel7x64builder0 5 years ago
parent
commit
40aa80090c
  1. 14
      SOURCES/paths.patch
  2. 10
      SOURCES/timeline.desktop
  3. 202
      SPECS/timeline.spec

14
SOURCES/paths.patch

@ -0,0 +1,14 @@ @@ -0,0 +1,14 @@
--- source/timelinelib/config/paths.py~ 2016-04-30 06:53:28.000000000 -0400
+++ source/timelinelib/config/paths.py 2016-05-02 10:02:43.981325789 -0400
@@ -19,9 +19,9 @@
import os.path
-_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", ".."))
+_ROOT = "/usr/share/timeline/"
_ROOT = _ROOT.decode("utf-8")
ICONS_DIR = os.path.join(_ROOT, u"icons")
EVENT_ICONS_DIR = os.path.join(_ROOT, u"icons", u"event_icons")
-LOCALE_DIR = os.path.join(_ROOT, u"translations")
+LOCALE_DIR = "/usr/share/locale/"
HELP_RESOURCES_DIR = os.path.join(_ROOT, u"help_resources")

10
SOURCES/timeline.desktop

@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Name=Timeline
Exec=timeline
Comment=Displays and navigates events on a timeline
Icon=timeline
Terminal=false
Categories=Office
StartupNotify=false
Version=1.0

202
SPECS/timeline.spec

@ -0,0 +1,202 @@ @@ -0,0 +1,202 @@
Name: timeline
Version: 1.19.0
Release: 2%{?dist}
Summary: Displays and navigates events on a timeline

License: GPLv3 and CC-BY-SA
URL: http://thetimelineproj.sourceforge.net/
Source0: http://downloads.sourceforge.net/thetimelineproj/%{name}-%{version}.zip
Source1: timeline.desktop
Patch0: paths.patch
BuildArch: noarch
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: python2-devel /usr/bin/pathfix.py
Requires: python2-wxpython
Requires: python2-markdown
Requires: python2-icalendar
Requires: python2-svg
Requires: python2-humblewx
Requires: hicolor-icon-theme

%description
Timeline is a cross-platform application for displaying and navigating
events on a timeline.

%prep
%setup -q

%patch0 -p0
pathfix.py -pni "%{__python2} %{py2_shbang_opts}" .

%build

python2 ./tools/generate-mo-files.py

%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/timeline

install -m 755 source/timeline.py $RPM_BUILD_ROOT%{_bindir}/timeline
cp -pr icons $RPM_BUILD_ROOT%{_datadir}/timeline/
cp -pr dependencies $RPM_BUILD_ROOT%{_datadir}/timeline/

mkdir -p $RPM_BUILD_ROOT%{python2_sitelib}/timelinelib
cp -pr source/timelinelib/* $RPM_BUILD_ROOT%{python2_sitelib}/timelinelib/

mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
install -p -m 644 icons/48.png \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/timeline.png

desktop-file-install \
--dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}

mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale
cp -a translations/*/ $RPM_BUILD_ROOT%{_datadir}/locale/

#Drop bundled python dependencies.
rm -rf $RPM_BUILD_ROOT%{_datadir}/timeline/dependencies

%find_lang %{name}


%files -f %{name}.lang
%license COPYING
%doc AUTHORS README documentation/
%{_bindir}/*
%{_datadir}/timeline
%{_datadir}/applications/timeline.desktop
%{_datadir}/icons/hicolor/48x48/apps/timeline.png
%{python2_sitelib}/timelinelib*

%changelog
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.19.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Wed May 01 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.19.0-1
- 0.19.0

* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Mon Sep 10 2018 Gwyn Ciesla <limburgher@gmail.com> - 1.18.0-2
- Fix shebang handling.

* Wed Aug 01 2018 Gwyn Ciesla <limburgher@gmail.com> - 1.18.0-1
- 1.18.0

* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Tue Mar 27 2018 Gwyn Ciesla <limburgher@gmail.com> - 1.17.0-1
- Latest upstream.

* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Thu Feb 01 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.16.0-3
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)

* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.16.0-2
- Remove obsolete scriptlets

* Mon Nov 13 2017 Gwyn Ciesla <limburgher@gmail.com> - 1.16.0-1
- Latest upstream.

* Tue Aug 01 2017 Gwyn Ciesla <limburgher@gmail.com> - 1.15.0-1
- Latest upstream.

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

* Mon May 08 2017 Gwyn Ciesla <limburgher@gmail.com> - 1.14.0-1
- Latest upstream.

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

* Tue Jan 31 2017 Jon Ciesla <limburgher@gmail.com> - 1.13.0-1
- Latest upstream.

* Mon Oct 31 2016 Jon Ciesla <limburgher@gmail.com> - 1.12.0-1
- Latest upstream.

* Mon Aug 08 2016 Jon Ciesla <limburgher@gmail.com> - 1.11.0-1
- Latest upstream.

* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

* Mon May 02 2016 Jon Ciesla <limburgher@gmail.com> - 1.10.0-1
- Latest upstream.

* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Sun Jan 31 2016 Rickard Lindberg <ricli85@gmail.com> - 1.9.0-1
- Latest upstream.

* Thu Nov 26 2015 Rickard Lindberg <ricli85@gmail.com> - 1.8.1-1
- Latest upstream.

* Wed Nov 04 2015 Jon Ciesla <limburgher@gmail.com> - 1.5.0-3
- Fix python2 macros and BR, BZ 1277701.

* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Tue Feb 03 2015 Jon Ciesla <limburgher@gmail.com> - 1.5.0-1
- Latest upstream.

* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Thu Apr 24 2014 Jon Ciesla <limburgher@gmail.com> - 1.2.4-1
- Latest upstream.

* Mon Oct 21 2013 Jon Ciesla <limburgher@gmail.com> - 1.0.1-1
- Latest upstream.

* Fri Oct 11 2013 Jon Ciesla <limburgher@gmail.com> - 0.20.0-3
- Fix typo, BZ 1018161.

* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Wed May 15 2013 Jon Ciesla <limburgher@gmail.com> - 0.20.0-1
- Latest upstream.

* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Mon Nov 19 2012 Jon Ciesla <limburgher@gmail.com> - 0.18.0-1
- Latest upstream.
- Fix end-of-line encodings.

* Mon Nov 19 2012 Jon Ciesla <limburgher@gmail.com> - 0.16.0-3
- Use system python libs.

* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Mon Feb 20 2012 Jon Ciesla <limburgher@gmail.com> - 0.16.0-1
- New upstream.

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

* Fri Oct 28 2011 Jon Ciesla <limb@jcomserv.net> - 0.14.0-3
- Incorporated Mamoru's .po fixes.
- Moved scriptlet back to post.
- Moved update icon cache to postrans.
- Dropped scons BR.

* Wed Oct 26 2011 Jon Ciesla <limb@jcomserv.net> - 0.14.0-2
- Fixed license tag.
- Fixed mandir macro.
- Moved scriptlet to posttrans.
- Dropped INSTALL.

* Thu Oct 20 2011 Jon Ciesla <limb@jcomserv.net> - 0.14.0-1
- First build.
Loading…
Cancel
Save