rpms/inchi/devel inchi-rpm.patch, NONE, 1.1 inchi.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Dominik Mierzejewski (rathann) fedora-extras-commits at redhat.com
Thu Oct 25 19:29:14 UTC 2007


Author: rathann

Update of /cvs/pkgs/rpms/inchi/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30011/devel

Modified Files:
	.cvsignore sources 
Added Files:
	inchi-rpm.patch inchi.spec 
Log Message:
initial import


inchi-rpm.patch:

--- NEW FILE inchi-rpm.patch ---
--- InChI-1-API/cInChI/gcc_makefile/makefile.r	2006-05-08 19:28:26.000000000 +0200
+++ InChI-1-API/cInChI/gcc_makefile/makefile	2007-07-01 14:05:00.000000000 +0200
@@ -31,7 +31,7 @@
 
 # === C Compiler Options =======
 ifndef C_OPTIONS
-  C_OPTIONS = $(P_INCL) -ansi -O3 -c
+  C_OPTIONS = $(P_INCL) -ansi $(OPTFLAGS) -c
 #  C_OPTIONS = $(P_INCL) -ansi -O1 -fsigned-char -ffunction-sections -fexpensive-optimizations -fstack-check -fexceptions -Wall -pedantic -Wbad-function-cast -Wreturn-type -Wformat -Wuninitialized -Wcast-align -Wshadow -Wunused -Wunused-value -Wunused-variable -Wunused-function -Wunused-parameter -Wunused-label -Wcomment -Wcast-qual -Wconversion -Wimplicit-function-dec -Wimplicit-int -Wmissing-braces -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wsign-compare -Wfloat-equal -Wstrict-prototypes -Wwrite-strings -Wundef -Waggregate-return -Wchar-subscripts -Wformat-nonliteral -Wnested-externs -Wsequence-point -Wpointer-arith -m32 -mfancy-math-387 -mieee-fp -mno-soft-float -c
 endif
 
--- InChI-1-API/INCHI_API/gcc_so_makefile/makefile.r	2006-05-16 18:56:32.000000000 +0200
+++ InChI-1-API/INCHI_API/gcc_so_makefile/makefile	2007-07-01 14:00:42.000000000 +0200
@@ -9,7 +9,7 @@
 else
 # Uncomment the following line in case of Linux
 # or define ISLINUX in command line: make ISLINUX=1
-#   ISLINUX = 1
+   ISLINUX = 1
 endif
 
 # Linux fpic option: replace -fPIC with -fpic if the latter works
@@ -83,7 +83,7 @@
 
 # === C Compiler Options =======
 ifndef C_OPTIONS
-  C_OPTIONS = -ansi -O3 -c
+  C_OPTIONS = -ansi $(OPTFLAGS) -c
   ifndef windir
   ifdef ISLINUX
     ifndef C_SO_OPTIONS


--- NEW FILE inchi.spec ---
%define inchi_so_ver 1.02.00

Summary: The IUPAC International Chemical Identifier library
Name: inchi
Version: 1.0.2
Release: 0.2%{?dist}
URL: http://www.iupac.org/inchi/
Group: Development/Libraries
Source0: http://www.iupac.org/inchi/download/inchi102b.zip
Patch0: %{name}-rpm.patch
License: LGPLv2+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
The IUPAC International Chemical Identifier (InChITM) is a non-proprietary
identifier for chemical substances that can be used in printed and
electronic data sources thus enabling easier linking of diverse data
compilations. It was developed under IUPAC Project 2000-025-1-800 during
the period 2000-2004. Details of the project and the history of its
progress are available from the project web site.

%package devel
Summary: Development headers for the InChI library
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
The inchi-devel package includes the header files and libraries
necessary for developing programs using the InChI library.

If you are going to develop programs which will use this library
you should install inchi-devel.  You'll also need to have the
inchi package installed.

%prep
%setup -q -n InChI-1-software-1-02-beta
%patch0 -p1 -b .r

%build
pushd INCHI_API/gcc_so_makefile
%{__make} OPTFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
popd

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/inchi}
install -p INCHI_API/gcc_so_makefile/result/libinchi.so.%{inchi_so_ver} $RPM_BUILD_ROOT%{_libdir}
ln -s libinchi.so.%{inchi_so_ver} $RPM_BUILD_ROOT%{_libdir}/libinchi.so.1
ln -s libinchi.so.1               $RPM_BUILD_ROOT%{_libdir}/libinchi.so
sed -i 's/\r//' INCHI_API/INCHI_DLL/inchi_api.h
install -pm644 INCHI_API/INCHI_DLL/inchi_api.h $RPM_BUILD_ROOT%{_includedir}/inchi
sed -i 's/\r//' LICENSE readme.txt

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc LICENSE readme.txt Software-1-02-beta.pdf
%{_libdir}/libinchi.so.*

%files devel
%defattr(-,root,root,-)
%{_includedir}/inchi
%{_libdir}/libinchi.so

%changelog
* Mon Oct 01 2007 Dominik Mierzejewski <rpm at greysector.net> 1.0.2-0.2
- updated license tag
- fixed non-Unix EOLs in docs
- fixed dangling symlinks

* Thu Sep 06 2007 Dominik Mierzejewski <rpm at greysector.net> 1.0.2-0.1
- updated to 1.02b
- dropped WDI patch (upstream'd)
- updated license tag

* Sun Jul 01 2007 Dominik Mierzejewski <rpm at greysector.net> 1.0.1-8
- initial build


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/inchi/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	25 Oct 2007 00:55:39 -0000	1.1
+++ .cvsignore	25 Oct 2007 19:28:42 -0000	1.2
@@ -0,0 +1 @@
+inchi102b.zip


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/inchi/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	25 Oct 2007 00:55:39 -0000	1.1
+++ sources	25 Oct 2007 19:28:42 -0000	1.2
@@ -0,0 +1 @@
+8cf52a73c369bda28de95f4280872e81  inchi102b.zip




More information about the fedora-extras-commits mailing list