source: spec/trunk/SPECS/scribus.spec@ 1330

Last change on this file since 1330 was 1221, checked in by tellie, 8 years ago

spec: scribus: Release version 1.4.6-3.

File size: 6.4 KB
Line 
1Name: scribus
2Version: 1.4.6
3Release: 3%{?dist}
4Summary: DeskTop Publishing application written in Qt
5Group: Applications/Productivity
6# swatches bring in the fun licenses
7License: GPLv2+ and OGL and CC0 and CC-BY and CC-BY-SA and Public Domain and ASL 2.0 and LGPLv2+
8URL: http://www.scribus.net/
9# ./make-free-archive %{version}
10Vendor: bww bitwise works GmbH
11
12%scm_source svn http://svn.netlabs.org/repos/ports/scribus/trunk 2228
13BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14
15#Source0: %{name}-%{version}-free.tar.xz
16#Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
17#Source1: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz.asc
18#Source2: scribus.png
19# Patch1: %{name}-1.4.4-qreal_double.patch
20# fix build with non-free content removed
21# Patch2: %{name}-1.4.2-nonfree.patch
22# Fix necessary LPPL attribution
23# Patch3: %{name}-1.4.5-lppl-fixes.patch
24
25BuildRequires: cmake
26BuildRequires: cups-devel
27# BuildRequires: desktop-file-utils
28BuildRequires: lcms2-devel
29# BuildRequires: libart_lgpl-devel
30BuildRequires: libjpeg-devel
31BuildRequires: libpng-devel
32BuildRequires: libtiff-devel
33BuildRequires: libxml2-devel
34BuildRequires: openssl-devel
35BuildRequires: python-devel
36# BuildRequires: python-imaging-devel
37BuildRequires: libqt4-devel
38BuildRequires: zlib-devel
39BuildRequires: freetype-devel
40# BuildRequires: gnutls-devel
41BuildRequires: cairo-devel
42BuildRequires: hunspell-devel
43# BuildRequires: boost-devel
44# BuildRequires: podofo-devel
45# BuildRequires: hyphen-devel
46Requires: ghostscript
47Requires: python
48# Requires: python-imaging
49Requires: tkinter
50#Requires: shared-mime-info
51Obsoletes: %{name}-doc < %{version}-%{release}
52Obsoletes: %{name}-devel < %{version}-%{release}
53
54#filter_provides_in %{_libdir}/%{name}/plugins
55#filter_setup
56
57
58%description
59Scribus is an desktop open source page layout program with
60the aim of producing commercial grade output in PDF and
61Postscript, primarily, though not exclusively for Linux.
62
63While the goals of the program are for ease of use and simple easy to
64understand tools, Scribus offers support for professional publishing
65features, such as CMYK color, easy PDF creation, Encapsulated Postscript
66import/export and creation of color separations.
67
68
69#%setup -q
70#%patch1 -p1 -b .double
71#%patch2 -p1 -b .nonfree
72#%patch3 -p1
73
74%debug_package
75
76%prep
77%scm_setup
78
79# recode man page to UTF-8
80#pushd scribus/manpages
81#cd scribus/manpages
82#iconv -f ISO8859-2 -t UTF-8 scribus.1.pl > tmp
83#touch -r scribus.1.pl tmp
84#mv tmp scribus.1.pl
85#popd
86#cd ../..
87# fix permissions
88chmod a-x scribus/pageitem_latexframe.h
89
90# drop shebang lines from python scripts
91#for f in scribus/plugins/scriptplugin/{samples,scripts}/*.py
92#do
93# sed '1{/#!\/usr\/bin\/env\|#!\/usr\/bin\/python/d}' $f > $f.new
94# touch -r $f $f.new
95# mv $f.new $f
96#done
97
98
99%build
100mkdir build
101#pushd build
102cd build
103%cmake -DWANT_DISTROBUILD=YES -DWANT_HUNSPELL=YES -DWANT_NOHEADERINSTALL=YES ..
104
105make VERBOSE=1 %{?_smp_mflags}
106#popd
107cd ..
108
109%install
110#pushd build
111cd build
112make install DESTDIR=$RPM_BUILD_ROOT
113#popd
114cd ..
115
116#install -p -D -m0644 %SOURCE2 ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/scribus.png
117install -p -D -m0644 ${RPM_BUILD_ROOT}%{_datadir}/scribus/icons/scribusdoc.png ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/x-scribus.png
118find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
119
120# install the global desktop file
121rm -f ${RPM_BUILD_ROOT}%{_datadir}/mimelnk/application/*scribus.desktop
122#desktop-file-install \
123#%if (0%{?fedora} && 0%{?fedora} < 19) || (0%{?rhel} && 0%{?rhel} < 7)
124# --vendor="fedora" \
125#%endif
126# --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
127# scribus.desktop
128
129# remove unwanted stuff
130rm -rf ${RPM_BUILD_ROOT}%{_defaultdocdir}/%{name}
131
132# Register as an application to be visible in the software center
133#
134# NOTE: It would be *awesome* if this file was maintained by the upstream
135# project, translated and installed into the right place during `make install`.
136#
137# See http://www.freedesktop.org/software/appstream/docs/ for more details.
138#
139#mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
140#cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <<EOF
141#<?xml version="1.0" encoding="UTF-8"?>
142#<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
143#<!--
144#BugReportURL: http://bugs.scribus.net/view.php?id=12708
145#SentUpstream: 2014-09-18
146#-->
147#<application>
148# <id type="desktop">scribus.desktop</id>
149# <metadata_license>CC0-1.0</metadata_license>
150# <description>
151# <p>
152# Scribus is a desktop publishing application that allows you to create posters,
153# magazines and books ready to send off to a printing house.
154# It supports professional publishing features, such color separations, CMYK and
155# spot colors, ICC color management, and versatile PDF creation.
156# </p>
157# <!-- FIXME: Probably needs another paragraph or two -->
158# </description>
159# <url type="homepage">http://scribus.net/</url>
160# <screenshots>
161# <screenshot type="default">http://upload.wikimedia.org/wikipedia/commons/f/f4/Scribus-1.3-Linux.png</screenshot>
162# </screenshots>
163# <!-- FIXME: change this to an upstream email address for spec updates
164# <updatecontact>someone_who_cares@upstream_project.org</updatecontact>
165# -->
166#</application>
167#EOF
168
169%post
170#touch --no-create %{_datadir}/mime/packages &> /dev/null || :
171
172%postun
173#if [ $1 -eq 0 ] ; then
174#touch --no-create %{_datadir}/mime/packages &> /dev/null || :
175#update-desktop-database &> /dev/null || :
176#update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
177#fi
178
179%posttrans
180#update-desktop-database &> /dev/null || :
181#update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
182
183
184
185%files
186%doc AUTHORS ChangeLog COPYING LINKS README
187%{_bindir}/%{name}.exe
188%{_libdir}/%{name}.dll
189%{_libdir}/%{name}/
190#%{_datadir}/appdata/*%{name}.appdata.xml
191#%{_datadir}/applications/*%{name}.desktop
192%{_datadir}/mime/packages/%{name}.xml
193%{_datadir}/pixmaps/*
194%{_datadir}/%{name}/
195%exclude %{_datadir}/%{name}/samples/*.py
196%exclude %{_datadir}/%{name}/scripts/*.py
197%{_mandir}/man1/*
198%{_mandir}/pl/man1/*
199%{_mandir}/de/man1/*
200
201
202%changelog
203* Mon Aug 14 2017 Elbert Pol <elbert.pol@gmail.com> - 1.4.6-3
204- remove the scribus.png
205* Sat Aug 12 2017 Elbert Pol <elbert.pol@gmail.com> - 1.4.6-2
206- Fix a wrong requires.
207* Sun Jul 30 2017 Elbert Pol <elbert.pol@gmail.com> - 1.4.6-1
208- First OS/2 build.
Note: See TracBrowser for help on using the repository browser.