/[packages]/cauldron/racket/releases/5.2/1.mga2/SPECS/racket.spec
ViewVC logotype

Contents of /cauldron/racket/releases/5.2/1.mga2/SPECS/racket.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 234767 - (show annotations) (download)
Sat May 5 15:03:11 2012 UTC (11 years, 11 months ago) by mitya
Original Path: cauldron/racket/current/SPECS/racket.spec
File size: 4857 byte(s)
SILENT: fix BuildRequires again

1 %define _disable_ld_as_needed 1
2 %define _disable_ld_no_undefined 1
3
4 # To fix paths, Racket performs direct ELF surgery during install. D'oh!
5 # (see collects/setup/unixstyle-install.rkt)
6 # That's why we end up with slightly different executables that share the same
7 # build ID, and this breaks debuginfo extraction.
8 %define debug_package %{nil}
9
10 Name: racket
11 Version: 5.2
12 Release: %mkrel 1
13 Summary: Racket is a Scheme implementation
14 License: LGPLv2+
15 Group: Development/Other
16 Url: http://www.racket-lang.org
17 Source0: http://download.racket-lang.org/installers/%{version}/racket/%{name}-%{version}-src-unix.tgz
18 Source1: racket.png
19 BuildRequires: spec-helper >= 0.12
20 BuildRequires: imagemagick
21 %ifarch x86_64
22 BuildRequires: lib64jpeg62
23 %else
24 BuildRequires: libjpeg62
25 %endif
26 BuildRequires: png-devel
27
28 %define major %{version}
29 %define libname %mklibname %{name} %{major}
30 %define develname %mklibname %{name} -d
31
32 Requires: %{libname} = %{version}
33
34 %description
35 Racket is a Scheme implementation. It implements
36 the language as described in the Revised^5 Report on the
37 Algorithmic Language Scheme and adds numerous extensions.
38
39 %package -n %{libname}
40 Summary: Main library for %{name}
41 Group: System/Libraries
42 Provides: %{name} = %{version}-%{release}
43
44 %description -n %{libname}
45 This package contains the library needed to run programs dynamically
46 linked with %{name}.
47
48 %package -n %{develname}
49 Summary: Headers for developing programs that will use %{name}
50 Group: Development/Other
51 Requires: %{libname} = %{version}-%{release}
52 Provides: %{name}-devel = %{version}-%{release}
53
54 %description -n %{develname}
55 This package contains the headers that programmers will need to develop
56 applications which will use %{name}.
57
58 %package -n g%{name}
59 Summary: Racket graphical Scheme implementation
60 Group: Development/Other
61 Requires: %{name} = %{version}
62
63 %description -n g%{name}
64 GRacket is the Racket's graphical Scheme implementation. It embeds and
65 extends Racket with a graphical user interface (GUI) toolbox.
66
67 %package -n dr%{name}
68 Summary: Racket graphical development environment
69 Group: Development/Other
70 Requires: g%{name} = %{version}
71
72 %description -n dr%{name}
73 DrRacket is the graphical development environment for creating
74 Racket and GRacket applications.
75
76 %prep
77 %setup -q
78
79 %build
80 cd src
81 %configure2_5x \
82 --enable-shared
83 %make
84
85 %install
86 rm -rf %{buildroot}
87 mkdir %{buildroot}
88 cd src
89 export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
90 export PLT_SETUP_OPTIONS="-j 1"
91 %makeinstall_std
92
93 # correct installation
94 install -d -m 755 %{buildroot}%{_datadir}
95 install -d -m 755 %{buildroot}%{_libdir}/%{name}
96
97 # correct perms
98 find %{buildroot}%{_libdir}/%{name}/collects -type d -exec chmod 755 {} \;
99 find %{buildroot}%{_datadir}/%{name}/doc -type d -exec chmod 755 {} \;
100
101 %multiarch_includes %{buildroot}%{_includedir}/racket/mzconfig.h
102
103 mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
104 mv README $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
105
106 mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
107 cat > $RPM_BUILD_ROOT%{_datadir}/applications/drracket.desktop << EOF
108 [Desktop Entry]
109 Name=DrRacket
110 Comment=Scheme IDE
111 Exec=drracket
112 Icon=drracket
113 Terminal=false
114 Type=Application
115 StartupNotify=true
116 Categories=Development;IDE;
117 EOF
118
119 mkdir -p %{buildroot}%{_datadir}/pixmaps
120 mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48,64x64}/apps
121 convert -scale "48x48" %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/drracket.png
122 convert -scale "16x16" %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/drracket.png
123 convert -scale "32x32" %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/drracket.png
124 convert -scale "48x48" %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/drracket.png
125 convert -scale "64x64" %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/64x64/apps/drracket.png
126
127 %files
128 %defattr(-,root,root)
129 %doc README
130 %{_libdir}/%{name}
131 %{_bindir}/*
132 %{_mandir}/man1/*
133 %{_datadir}/%{name}
134 %exclude %{_bindir}/gracket
135 %exclude %{_bindir}/drracket
136 %exclude %{_mandir}/man1/gracket.1*
137 %exclude %{_mandir}/man1/drracket.1*
138 %exclude %{_libdir}/%{name}/collects/mred
139 %exclude %{_libdir}/%{name}/collects/drracket
140 %exclude %{_datadir}/%{name}/doc/drracket
141
142 %files -n %{libname}
143 %defattr(-,root,root)
144 %{_libdir}/libracket3m-%{version}.so
145
146 %files -n %{develname}
147 %defattr(-,root,root)
148 %{_libdir}/libracket3m.so
149 %{_libdir}/*.la
150 %{_includedir}/*
151
152 %files -n gracket
153 %defattr(-,root,root)
154 %{_libdir}/%{name}/collects/mred
155 %{_bindir}/gracket
156 %{_mandir}/man1/gracket.1*
157
158 %files -n drracket
159 %defattr(-,root,root)
160 %{_libdir}/%{name}/collects/drracket
161 %{_bindir}/drracket
162 %{_mandir}/man1/drracket.1*
163 %{_datadir}/%{name}/doc/drracket
164 %{_datadir}/pixmaps/drracket.png
165 %{_iconsdir}/hicolor/16x16/apps/drracket.png
166 %{_iconsdir}/hicolor/32x32/apps/drracket.png
167 %{_iconsdir}/hicolor/48x48/apps/drracket.png
168 %{_iconsdir}/hicolor/64x64/apps/drracket.png
169 %{_datadir}/applications/drracket.desktop

  ViewVC Help
Powered by ViewVC 1.1.30