| 1 |
%if %{?_with_dmd:1}%{!?_with_dmd:0} |
|---|
| 2 |
%define with_dmd 1 |
|---|
| 3 |
%define with_gdc 0 |
|---|
| 4 |
%else |
|---|
| 5 |
%define with_dmd 0 |
|---|
| 6 |
%define with_gdc 1 |
|---|
| 7 |
%endif |
|---|
| 8 |
|
|---|
| 9 |
Summary: D Shared Software System |
|---|
| 10 |
Name: dsss |
|---|
| 11 |
Version: 0.72.2 |
|---|
| 12 |
Release: 0%{?dist} |
|---|
| 13 |
Group: Development/Tools |
|---|
| 14 |
License: MIT |
|---|
| 15 |
URL: http://dsource.org/projects/dsss/ |
|---|
| 16 |
|
|---|
| 17 |
Source: http://svn.dsource.org/projects/dsss/downloads/%{version}/%{name}-%{version}.tar.bz2 |
|---|
| 18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 19 |
%if %{with_dmd} |
|---|
| 20 |
BuildRequires: dmd |
|---|
| 21 |
%endif |
|---|
| 22 |
%if %{with_gdc} |
|---|
| 23 |
BuildRequires: gdc |
|---|
| 24 |
%endif |
|---|
| 25 |
Requires: rebuild = %{version}, curl |
|---|
| 26 |
|
|---|
| 27 |
# Spec file written by Anders F Bjorklund <afb@users.sourceforge.net> |
|---|
| 28 |
|
|---|
| 29 |
%description |
|---|
| 30 |
DSSS, the D Shared Software System, is a tool to ease the building, |
|---|
| 31 |
installation, configuration and acquisition of D software. |
|---|
| 32 |
|
|---|
| 33 |
%package devel |
|---|
| 34 |
Summary: Build tool for D - development files |
|---|
| 35 |
Group: Development/Tools |
|---|
| 36 |
|
|---|
| 37 |
%description devel |
|---|
| 38 |
Allows you to use DSSS libraries in your own dsss.conf D programs. |
|---|
| 39 |
|
|---|
| 40 |
%package -n rebuild |
|---|
| 41 |
Version: %{version} |
|---|
| 42 |
Summary: Build tool for D |
|---|
| 43 |
Group: Development/Tools |
|---|
| 44 |
License: Artistic or GPL |
|---|
| 45 |
|
|---|
| 46 |
%description -n rebuild |
|---|
| 47 |
Rebuild is a tool for building D software. |
|---|
| 48 |
It is based on the frontend to the DMD D compiler. |
|---|
| 49 |
|
|---|
| 50 |
Essentially, for any D source file given, rebuild finds all |
|---|
| 51 |
dependencies, and compiles them all into the target. |
|---|
| 52 |
|
|---|
| 53 |
%prep |
|---|
| 54 |
%setup -q |
|---|
| 55 |
%if %{with_dmd} |
|---|
| 56 |
ln -s Makefile.dmd.posix Makefile |
|---|
| 57 |
%endif |
|---|
| 58 |
%if %{with_gdc} |
|---|
| 59 |
ln -s Makefile.gdc.posix Makefile |
|---|
| 60 |
%endif |
|---|
| 61 |
|
|---|
| 62 |
%build |
|---|
| 63 |
make CXXFLAGS="$RPM_OPT_FLAGS" |
|---|
| 64 |
|
|---|
| 65 |
%install |
|---|
| 66 |
rm -rf $RPM_BUILD_ROOT |
|---|
| 67 |
make install PREFIX="$RPM_BUILD_ROOT%{_prefix}" |
|---|
| 68 |
mv $RPM_BUILD_ROOT%{_prefix}/etc $RPM_BUILD_ROOT%{_sysconfdir} || : |
|---|
| 69 |
rm -rf $RPM_BUILD_ROOT%{_prefix}/share/doc |
|---|
| 70 |
|
|---|
| 71 |
%clean |
|---|
| 72 |
rm -rf $RPM_BUILD_ROOT |
|---|
| 73 |
|
|---|
| 74 |
%files |
|---|
| 75 |
%doc docs/* |
|---|
| 76 |
%defattr(-,root,root) |
|---|
| 77 |
%{_bindir}/dsss |
|---|
| 78 |
%{_mandir}/man1/dsss.1* |
|---|
| 79 |
%dir %{_datadir}/dsss |
|---|
| 80 |
%{_datadir}/dsss/dsss_lib_test.d |
|---|
| 81 |
%dir %{_datadir}/dsss/manifest |
|---|
| 82 |
%{_datadir}/dsss/manifest/*.manifest |
|---|
| 83 |
%dir %{_datadir}/dsss/sources |
|---|
| 84 |
%config %{_datadir}/dsss/sources/* |
|---|
| 85 |
%{_datadir}/dsss/candydoc.tar.gz |
|---|
| 86 |
%dir %{_sysconfdir}/dsss |
|---|
| 87 |
%config %{_sysconfdir}/dsss/* |
|---|
| 88 |
|
|---|
| 89 |
%files devel |
|---|
| 90 |
%{_includedir}/d/* |
|---|
| 91 |
%{_libdir}/*.a |
|---|
| 92 |
|
|---|
| 93 |
%files -n rebuild |
|---|
| 94 |
%doc rebuild/README rebuild/readme.txt |
|---|
| 95 |
%doc rebuild/artistic.txt rebuild/gpl.txt |
|---|
| 96 |
%{_bindir}/rebuild |
|---|
| 97 |
%{_bindir}/rerun |
|---|
| 98 |
%{_bindir}/rebuild_choosedc |
|---|
| 99 |
%{_mandir}/man1/rebuild.1* |
|---|
| 100 |
%{_mandir}/man1/rerun.1* |
|---|
| 101 |
%{_mandir}/man1/rebuild_choosedc.1* |
|---|
| 102 |
%dir %{_datadir}/rebuild |
|---|
| 103 |
%{_datadir}/rebuild/testtango.d |
|---|
| 104 |
%dir %{_sysconfdir}/rebuild |
|---|
| 105 |
%config %{_sysconfdir}/rebuild/* |
|---|
| 106 |
%{_prefix}/lib/dymoduleinit.d |
|---|