]> git.pld-linux.org Git - packages/autoq3d.git/blob - autoq3d.spec
- initial, not filled all part.
[packages/autoq3d.git] / autoq3d.spec
1 #
2 # Conditional build:
3 %bcond_with     tests           # build with tests
4 %bcond_without  tests           # build without tests
5 #
6 Summary:        autoq3d
7 Summary(pl):    autoq3d
8 Name:           AutoQ3D
9 Version:        1.20
10 Release:        0.1
11 License:        GPL
12 Group:          Applications
13 Source0:        http://dl.sourceforge.net/autoq3d/%{name}-v%{version}sourceLinux.zip
14 # Source0-md5:  cccd22e1c068651c8ad7c0831acd2aba
15 #Source1:       -
16 # Source1-md5:  -
17 #Patch0:                %{name}-DESTDIR.patch
18 URL:            -
19 %if %{with initscript}
20 BuildRequires:  rpmbuild(macros) >= 1.228
21 Requires(post,preun):   /sbin/chkconfig
22 %endif
23 #BuildRequires: -
24 #BuildRequires: autoconf
25 #BuildRequires: automake
26 #BuildRequires: intltool
27 #BuildRequires: libtool
28 #Requires(postun):      -
29 #Requires(pre,post):    -
30 #Requires(preun):       -
31 #Requires:      -
32 #Provides:      -
33 #Provides:      group(foo)
34 #Provides:      user(foo)
35 #Obsoletes:     -
36 #Conflicts:     -
37 #BuildArch:     noarch
38 #ExclusiveArch: %{ix86}
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %description
42
43 %description -l pl
44
45 %package subpackage
46 Summary:        -
47 Summary(pl):    -
48 Group:          -
49
50 %description subpackage
51
52 %description subpackage -l pl
53
54 %package libs
55 Summary:        -
56 Summary(pl):    -
57 Group:          Libraries
58
59 %description libs
60
61 %description libs -l pl
62
63
64 %package devel
65 Summary:        Header files for ... library
66 Summary(pl):    Pliki nag³ówkowe biblioteki ...
67 Group:          Development/Libraries
68 #Requires:      %{name} = %{version}-%{release}
69
70 %description devel
71 This is the package containing the header files for ... library.
72
73 %description devel -l pl
74 Ten pakiet zawiera pliki nag³ówkowe biblioteki ....
75
76 %package static
77 Summary:        Static ... library
78 Summary(pl):    Statyczna biblioteka ...
79 Group:          Development/Libraries
80 Requires:       %{name}-devel = %{version}-%{release}
81
82 %description static
83 Static ... library.
84
85 %description static -l pl
86 Statyczna biblioteka ....
87
88 %prep
89 %setup -q -n %{name}
90 #%setup -q -c -T
91 #%setup -q -n %{name}
92 #%%setup -q -n %{name}-%{version}.orig -a 1
93 #%patch0 -p1
94
95 # undos the source
96 #find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
97
98 # remove CVS control files
99 #find -name CVS -print0 | xargs -0 rm -rf
100
101 %build
102 # if ac/am/* rebuilding is necessary, do it in this order and add
103 # appropriate BuildRequires
104 #%%{__intltoolize}
105 #%%{__gettextize}
106 #%%{__libtoolize}
107 #%%{__aclocal}
108 #%%{__autoconf}
109 #%%{__autoheader}
110 #%%{__automake}
111 #cp -f /usr/share/automake/config.sub .
112 %configure
113 %{__make}
114
115 #%{__make} \
116 #       CFLAGS="%{rpmcflags}" \
117 #       LDFLAGS="%{rpmldflags}"
118
119 %install
120 rm -rf $RPM_BUILD_ROOT
121 # create directories if necessary
122 #install -d $RPM_BUILD_ROOT
123 #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
124
125 %{__make} install \
126         DESTDIR=$RPM_BUILD_ROOT
127
128 %clean
129 rm -rf $RPM_BUILD_ROOT
130
131 %pre
132
133 %post
134
135 %preun
136
137 %postun
138
139 %if %{with ldconfig}
140 %post   -p /sbin/ldconfig
141 %postun -p /sbin/ldconfig
142 %endif
143
144 %if %{with initscript}
145 %post init
146 /sbin/chkconfig --add %{name}
147 %service %{name} restart
148
149 %preun init
150 if [ "$1" = "0" ]; then
151         %service -q %{name} stop
152         /sbin/chkconfig --del %{name}
153 fi
154 %endif
155
156 %files
157 %defattr(644,root,root,755)
158 %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
159
160 %if 0
161 # if _sysconfdir != /etc:
162 #%%dir %{_sysconfdir}
163 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
164 %attr(755,root,root) %{_bindir}/*
165 %{_datadir}/%{name}
166 %endif
167
168 # initscript and its config
169 %if %{with initscript}
170 %attr(754,root,root) /etc/rc.d/init.d/%{name}
171 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
172 %endif
173
174 #%{_examplesdir}/%{name}-%{version}
175
176 %if %{with subpackage}
177 %files subpackage
178 %defattr(644,root,root,755)
179 #%doc extras/*.gz
180 #%{_datadir}/%{name}-ext
181 %endif
This page took 0.087701 seconds and 3 git commands to generate.