forked from ptomato/inform7-ide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgnome-inform7.opensuse.spec
160 lines (146 loc) · 5.49 KB
/
gnome-inform7.opensuse.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
#
# Spec file for GNOME Inform 7 on OpenSUSE. Rename to gnome-inform7.spec.
#
# Copyright (c) 2011 Malcolm J Lewis <malcolmlewis@opensuse.org>
# Copyright (c) 2014 Vincent Petry <pvince81@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gnome-inform7
Version: 6L02
Release: 0
License: GPL-3.0
Summary: Inform 7 interactive fiction programming language IDE
Url: http://inform7.com/
Group: Development/Languages/Other
Source0: http://downloads.sourceforge.net/%{name}/%{name}/Gnome_UI_source_%{version}.tar.gz
Source1: http://inform7.com/download/content/%{version}/I7_%{version}_Linux_all.tar.gz
BuildRequires: fdupes
BuildRequires: libgoocanvas3-devel
BuildRequires: graphviz
BuildRequires: gtksourceview2-devel
BuildRequires: gtkspell-devel
BuildRequires: intltool
BuildRequires: libwebkitgtk-devel
BuildRequires: lzma
BuildRequires: pkgconfig
BuildRequires: texlive
BuildRequires: libuuid-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: gstreamer-devel >= 1.2
BuildRequires: gstreamer-plugins-base >= 1.2
BuildRequires: gstreamer-plugins-good >= 1.2
BuildRequires: gstreamer-plugins-bad >= 1.2
# Required by autogen.sh
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
#Recommends: %{name}-lang = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%lang_package
%description
GNOME Inform 7 is a port of the Mac OS X and Windows versions of the
integrated development environment for Inform 7. Inform 7 is a "natural"
programming language for writing interactive fiction (also known as text
adventures.).
%prep
%setup -q
%setup -T -D -a 1
# Remove git update rows from autogen.sh
sed -i -e '/^git .*/d' autogen.sh
cd inform7-%{version}
%ifarch x86_64
tar xvf inform7-compilers_%{version}_x86_64.tar.gz
cp share/inform7/Compilers/ni ../src/ni/
%else
tar xvf inform7-compilers_%{version}_i386.tar.gz
cp share/inform7/Compilers/ni ../src/ni/
%endif
cd ..
%build
# need to run autogen.sh to make it find gstreamer 1.2
./autogen.sh
%configure --prefix=%{_prefix} --enable-manuals --with-sound=gstreamer
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/gnome-inform7.desktop
%find_lang %{name}
%fdupes %{buildroot}
%post
%desktop_database_post
%icon_theme_cache_post
%glib2_gsettings_schema_post
%postun
%desktop_database_postun
%icon_theme_cache_post
%glib2_gsettings_schema_postun
%clean
%{?buildroot:rm -rf %{buildroot}}
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/%{name}
%{_libdir}/%{name}
%ifarch x86_64
%{_prefix}/lib/%{name}
%endif
%{_datadir}/applications/gnome-inform7.desktop
%doc %{_datadir}/doc/%{name}
%{_datadir}/%{name}
%{_datadir}/glib-2.0/schemas/com.inform7.GUI.gschema.xml
%{_datadir}/icons/hicolor/*/*
%{_datadir}/mime/packages/inform7.xml
#%files lang -f %{name}.lang
%changelog
* Sun Jun 1 2014 Vincent Petry <pvince81@opensuse.org>
- Updated spec for version 6L02
* Mon Oct 10 2011 Malcolm J Lewis <malcolmlewis@opensuse.org>
- Rewrote spec file.
* Mon Nov 1 2010 P.F. Chimento <philip.chimento@gmail.com>
- Updated OpenSUSE version of spec file.
* Tue Oct 26 2010 P.F. Chimento <philip.chimento@gmail.com>
- Added Quixe and Eric Eve directories to packing list.
* Sat Jul 3 2010 P.F. Chimento <philip.chimento@gmail.com>
- Fixed rpmlint warnings.
* Thu Jun 24 2010 P.F. Chimento <philip.chimento@gmail.com>
- Added Parchment directory to packing list.
* Fri Apr 10 2009 P.F. Chimento <philip.chimento@gmail.com>
- Overhauled build process.
* Mon Feb 23 2009 P.F. Chimento <philip.chimento@gmail.com>
- Added the gtkterp-git binary to the packing list.
* Sat Dec 6 2008 P.F. Chimento <philip.chimento@gmail.com>
- Repackaged to release .1 of Public Beta Build 5U92.
* Sun Sep 14 2008 P.F. Chimento <philip.chimento@gmail.com>
- Added scriptlets for GConf2 schemas processing.
* Fri Sep 12 2008 P.F. Chimento <philip.chimento@gmail.com>
- Updated to Public Beta Build 5U92.
* Sat May 3 2008 P.F. Chimento <philip.chimento@gmail.com>
- Fedora 8 release bumped to 2, replacing outdated Glulx Entry Points.
* Wed Apr 30 2008 P.F. Chimento <philip.chimento@gmail.com>
- Updated to Public Beta Build 5T18.
* Mon Dec 3 2007 P.F. Chimento <philip.chimento@gmail.com>
- Updated to Public Beta Build 5J39.
* Tue Nov 13 2007 P.F. Chimento <philip.chimento@gmail.com>
- Updated to Public Beta Build 5G67.
* Sat Aug 18 2007 P.F. Chimento <philip.chimento@gmail.com>
- Updated to version 0.4.
* Sat Jun 16 2007 P.F. Chimento <philip.chimento@gmail.com>
- Repackaged for Fedora 7.
* Sat Jun 2 2007 P.F. Chimento <philip.chimento@gmail.com>
- Repackaged to release 2.
* Sun May 27 2007 P.F. Chimento <philip.chimento@gmail.com>
- Updated to version 0.3.
* Mon Apr 9 2007 P.F. Chimento <philip.chimento@gmail.com>
- Updated to version 0.2.