%define name gpsim %define version 0.22.0 %define release %mkrel 1 %define lib_name_orig lib%{name} %define lib_major 0 %define lib_name %mklibname %{name} %{lib_major} %define develname %mklibname -d %{name} Name: %{name} Epoch: 1 Version: %{version} Release: %{release} Summary: A software simulator for Microchip PIC microcontrollers Source0: %{name}-%{version}.tar.bz2 License: GPL Group: Development/Other Url: http://www.dattalo.com/gnupic/gpsim.html BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: readline-devel flex popt-devel glib2-devel BuildRequires: termcap-devel ncurses-devel glibc-static-devel %description gpsim is a full-featured software simulator for Microchip PIC microcontrollers distributed under the GNU General Public License. gpsim has been designed to be as accurate as possible. Accuracy includes the entire PIC - from the core to the I/O pins and including ALL of the internal peripherals. Thus it's possible to create stimuli and tie them to the I/O pins and test the PIC the same PIC the same way you would in the real world. %package -n %{lib_name} Summary: Main library for %{name} Group: System/Libraries %description -n %{lib_name} This package contains the library needed to run programs dynamically linked with libgpsim %package -n %{develname} Summary: Headers for developing programs that will use libgpsim Group: Development/C Requires: %{lib_name} = %{epoch}:%{version} Provides: %{lib_name_orig}-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Obsoletes: %{lib_name}-devel %description -n %{develname} This package contains the headers that programmers will need to develop applications which will use libgpsim %post -n %{lib_name} -p /sbin/ldconfig %postun -n %{lib_name} -p /sbin/ldconfig %prep %setup -q %build export LDFLAGS="-ldl -lpthread" %configure --disable-gui %make %install rm -rf $RPM_BUILD_ROOT %makeinstall chmod 644 $RPM_BUILD_ROOT%{_libdir}/*.la %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README %{_bindir}/%{name} %files -n %{lib_name} %defattr(-,root,root) %{_libdir}/*.so.* %files -n %{develname} %defattr(-,root,root) %{_includedir}/* %{_libdir}/*.so %{_libdir}/*.la %{_libdir}/*.a %changelog * Sun Jun 24 2007 Funda Wang <fundawang@mandriva.org> 0.22.0-1mdv2008.0 + Revision: 43582 - BR glib2 - Patch not needed - New version - Import gpsim * Sat Apr 15 2006 Couriousous <couriousous@mandriva.org> 1:0.21.11-1mdk - 0.21.11 * Fri Aug 26 2005 Couriousous <couriousous@mandriva.org> 1:0.21.4-2mdk - Disable gui as it use an antique gtk+extra no more provided in the distro * Fri Jul 15 2005 Couriousous <couriousous@mandriva.org> 0.21.4-1mdk - 0.21.4 * Fri Feb 04 2005 Couriousous <couriousous@mandrake.org> 0.21.2-5mdk - Rebuild for new libreadline * Fri Jan 21 2005 Couriousous <couriousous@mandrake.org> 0.21.2-4mdk - Fix menu ( strange bug ... ) - Fix requires-on-release * Mon Jan 17 2005 Olivier Thauvin <thauvin@aerov.jussieu.fr> 0.21.2-3mdk - Fix epoch stuff * Sat Jan 15 2005 Couriousous <couriousous@mandrake.org> 0.21.2-2mdk - Revert to 0.21.2 since ktechlab don't build with 0.21.3 cvs - trem <trem@zarb.org> - Add buildrequires * Fri Jan 14 2005 Couriousous <couriousous@mandrake.org> 0.21.3-0.20041231.1mdk - Update - Use gtk2 * Mon Jan 10 2005 Couriousous <couriousous@mandrake.org> 0.21.2-1mdk - First Mandrakelinux release