/[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 234765 - (show annotations) (download)
Sat May 5 14:23:53 2012 UTC (11 years, 11 months ago) by mitya
Original Path: cauldron/racket/current/SPECS/racket.spec
File size: 4832 byte(s)
SILENT: Fix BuildRequires: lib[64]jpeg62 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
27 %define major %{version}
28 %define libname %mklibname %{name} %{major}
29 %define develname %mklibname %{name} -d
30
31 Requires: %{libname} = %{version}
32
33 %description
34 Racket is a Scheme implementation. It implements
35 the language as described in the Revised^5 Report on the
36 Algorithmic Language Scheme and adds numerous extensions.
37
38 %package -n %{libname}
39 Summary: Main library for %{name}
40 Group: System/Libraries
41 Provides: %{name} = %{version}-%{release}
42
43 %description -n %{libname}
44 This package contains the library needed to run programs dynamically
45 linked with %{name}.
46
47 %package -n %{develname}
48 Summary: Headers for developing programs that will use %{name}
49 Group: Development/Other
50 Requires: %{libname} = %{version}-%{release}
51 Provides: %{name}-devel = %{version}-%{release}
52
53 %description -n %{develname}
54 This package contains the headers that programmers will need to develop
55 applications which will use %{name}.
56
57 %package -n g%{name}
58 Summary: Racket graphical Scheme implementation
59 Group: Development/Other
60 Requires: %{name} = %{version}
61
62 %description -n g%{name}
63 GRacket is the Racket's graphical Scheme implementation. It embeds and
64 extends Racket with a graphical user interface (GUI) toolbox.
65
66 %package -n dr%{name}
67 Summary: Racket graphical development environment
68 Group: Development/Other
69 Requires: g%{name} = %{version}
70
71 %description -n dr%{name}
72 DrRacket is the graphical development environment for creating
73 Racket and GRacket applications.
74
75 %prep
76 %setup -q
77
78 %build
79 cd src
80 %configure2_5x \
81 --enable-shared
82 %make
83
84 %install
85 rm -rf %{buildroot}
86 mkdir %{buildroot}
87 cd src
88 export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
89 export PLT_SETUP_OPTIONS="-j 1"
90 %makeinstall_std
91
92 # correct installation
93 install -d -m 755 %{buildroot}%{_datadir}
94 install -d -m 755 %{buildroot}%{_libdir}/%{name}
95
96 # correct perms
97 find %{buildroot}%{_libdir}/%{name}/collects -type d -exec chmod 755 {} \;
98 find %{buildroot}%{_datadir}/%{name}/doc -type d -exec chmod 755 {} \;
99
100 %multiarch_includes %{buildroot}%{_includedir}/racket/mzconfig.h
101
102 mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
103 mv README $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
104
105 mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
106 cat > $RPM_BUILD_ROOT%{_datadir}/applications/drracket.desktop << EOF
107 [Desktop Entry]
108 Name=DrRacket
109 Comment=Scheme IDE
110 Exec=drracket
111 Icon=drracket
112 Terminal=false
113 Type=Application
114 StartupNotify=true
115 Categories=Development;IDE;
116 EOF
117
118 mkdir -p %{buildroot}%{_datadir}/pixmaps
119 mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48,64x64}/apps
120 convert -scale "48x48" %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/drracket.png
121 convert -scale "16x16" %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/drracket.png
122 convert -scale "32x32" %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/drracket.png
123 convert -scale "48x48" %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/drracket.png
124 convert -scale "64x64" %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/64x64/apps/drracket.png
125
126 %files
127 %defattr(-,root,root)
128 %doc README
129 %{_libdir}/%{name}
130 %{_bindir}/*
131 %{_mandir}/man1/*
132 %{_datadir}/%{name}
133 %exclude %{_bindir}/gracket
134 %exclude %{_bindir}/drracket
135 %exclude %{_mandir}/man1/gracket.1*
136 %exclude %{_mandir}/man1/drracket.1*
137 %exclude %{_libdir}/%{name}/collects/mred
138 %exclude %{_libdir}/%{name}/collects/drracket
139 %exclude %{_datadir}/%{name}/doc/drracket
140
141 %files -n %{libname}
142 %defattr(-,root,root)
143 %{_libdir}/libracket3m-%{version}.so
144
145 %files -n %{develname}
146 %defattr(-,root,root)
147 %{_libdir}/libracket3m.so
148 %{_libdir}/*.la
149 %{_includedir}/*
150
151 %files -n gracket
152 %defattr(-,root,root)
153 %{_libdir}/%{name}/collects/mred
154 %{_bindir}/gracket
155 %{_mandir}/man1/gracket.1*
156
157 %files -n drracket
158 %defattr(-,root,root)
159 %{_libdir}/%{name}/collects/drracket
160 %{_bindir}/drracket
161 %{_mandir}/man1/drracket.1*
162 %{_datadir}/%{name}/doc/drracket
163 %{_datadir}/pixmaps/drracket.png
164 %{_iconsdir}/hicolor/16x16/apps/drracket.png
165 %{_iconsdir}/hicolor/32x32/apps/drracket.png
166 %{_iconsdir}/hicolor/48x48/apps/drracket.png
167 %{_iconsdir}/hicolor/64x64/apps/drracket.png
168 %{_datadir}/applications/drracket.desktop

  ViewVC Help
Powered by ViewVC 1.1.30