rpms/netgen/FC-6 netgen-1.3.7-free.patch, NONE, 1.1 netgen.desktop, NONE, 1.1 netgen.png, NONE, 1.1 netgen.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Chitlesh GOORAH (chitlesh) fedora-extras-commits at redhat.com
Thu Aug 23 22:19:14 UTC 2007


Author: chitlesh

Update of /cvs/extras/rpms/netgen/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13184/FC-6

Modified Files:
	.cvsignore sources 
Added Files:
	netgen-1.3.7-free.patch netgen.desktop netgen.png netgen.spec 
Log Message:


netgen-1.3.7-free.patch:

--- NEW FILE netgen-1.3.7-free.patch ---
--- netgen-1.3.7/base/spice.c	2006-04-11 00:04:49.000000000 +0200
+++ netgen-1.3.7/base/spice.c~	2007-08-14 14:45:37.000000000 +0200
@@ -395,7 +395,7 @@

       strcpy(subcktname, scan->name);
       free (scan->name);
-      free (scan);
+      FREE (scan);

       /* nexttok is now NULL, scan->name points to class */
       Instance(subcktname, instancename);
--- netgen-1.3.7/base/netcmp.c	2006-04-11 00:04:49.000000000 +0200
+++ netgen-1.3.7/base/netcmp.c~	2007-08-14 14:30:16.000000000 +0200
@@ -1086,7 +1086,7 @@
     }
   }

-  free (LookupElementList);
+  FREE (LookupElementList);
 }

 #else


--- NEW FILE netgen.desktop ---
[Desktop Entry]
Categories=Science;
Comment=Compare LVS netlists
Encoding=UTF-8
Exec=netgen
GenericName=netgen
Icon=netgen.png
Name=LVS netlist comparator
Terminal=false
Type=Application


--- NEW FILE netgen.spec ---
Name:             netgen
Version:          1.3.7
Release:          12%{?dist}
Summary:          LVS netlist comparison tool for VLSI

License:          GPL+
Group:            Applications/Engineering
URL:              http://opencircuitdesign.com/netgen

Source0:          http://opencircuitdesign.com/%{name}/archive/%{name}-%{version}.tgz
Source1:          %{name}.desktop
# this png is a screenshot taken on adder4 (an alliance's example) by Chitlesh
# its license is GPL+
Source2:          %{name}.png

Patch0:           netgen-1.3.7-free.patch

BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:    tk-devel m4 libXt-devel desktop-file-utils

%description
Netgen is a tool for comparing netlists, a process known as LVS,
which stands for "Layout vs. Schematic". This is an important step
in the integrated circuit design flow, ensuring that the geometry
that has been laid out matches the expected circuit.

The greatest need for LVS is in large analog or mixed-signal circuits
that cannot be simulated in reasonable time. Even for small circuits,
LVS can be done much faster than simulation, and provides feedback
that makes it easier to find an error than does a simulation.

%prep
# tarball includes unneeded symlink, so we firstly
# create a directory and expand tarball there.
%setup -q -T -c %{name}-%{version} -a 0

%patch0 -p0 -b .free

cd %{name}-%{version}

#fix for 64 bit hardcoded scripts
%ifarch x86_64 ppc64
%{__sed} -i 's|libdir = @libdir@|libdir = /usr/lib64|' scripts/defs.mak.in
%endif

%{__sed} -i.libexec "s|\${LIBDIR}|%{_libexecdir}|" lib/Makefile

%{__sed} -i.cflags -e 's|CFLAGS=.*CFLAGS|:|' configure

%{__sed} -i 's|magic-hackers at csl.cornell.edu|http://bugzilla.redhat.com|' scripts/configure

export WISH=/usr/bin/wish

%build
cd %{name}-%{version}

%configure --with-tcl=%{_libdir}      --with-tk=%{_libdir} \
           --with-tcllibs=%{_libdir}  --with-tklibs=%{_libdir}

%{__make} %{?_smp_mflags}


%install
%{__rm} -rf %{buildroot}
%{__mkdir} -p %{buildroot}%{_libexecdir}/%{name}

cd %{name}-%{version}
%{__make} install                \
    DESTDIR=%{buildroot}         \
    INSTALL="%{__install} -c -p" \
    CP="%{__cp} -p"

chmod 755 %{buildroot}%{_libexecdir}/%{name}/ntk2adl.sh
chmod 755 %{buildroot}%{_libexecdir}/%{name}/spice

# applying timestamps
%{__cp} -p README VERSION TO_DO Changes Copying doc/netgen.doc ..

#removing duplicates
%{__rm} -rf %{buildroot}%{_libdir}/%{name}/doc


# Ensure (on x86_64) that netgen isn't linked to tk.i386 if the latter is installed
sed -i '/NETGEN_WISH/aexport\ TCLIBPATH=%{_libdir}' %{buildroot}%{_bindir}/%{name}

desktop-file-install --vendor fedora         \
  --dir %{buildroot}%{_datadir}/applications \
  --add-category "Electronics"               \
  %{SOURCE1}

install -d %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/
install -p -m 644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png

%clean
%{__rm} -rf %{buildroot}

%post
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :


%postun
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :


%files
%defattr(-,root,root,-)
%doc README VERSION TO_DO Changes Copying netgen.doc
%{_bindir}/*
%{_libdir}/%{name}/
%{_libexecdir}/%{name}/
%{_datadir}/applications/fedora-%{name}.desktop
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png


%Changelog
* Thu Aug 23 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.3.7-12
- complying to freedesktop policies - categories

* Wed Aug 22 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.3.7-11
- added desktop file and icon

* Fri Aug 17 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.3.7-10
- fix for 64 bit and moved scripts to %%{_libexecdir}/%%{name}/

* Thu Aug 16 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.3.7-9
- Ensure (on x86_64) that netgen isn't linked to tk.i386 if the latter is installed

* Tue Aug 14 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.3.7-8
- added patch netgen-1.3.7-free.patch by Denis Leroy

* Mon Apr 30 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.3.7-7
- removing netgen.doc duplicate

* Mon Apr 23 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.3.7-6
- fixed %%configure for 64 arch

* Wed Apr 11 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.3.7-5
- Third fix for 64 bit arch

* Thu Mar 22 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.3.7-4
- fix for 64 bit

* Sat Mar 17 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.3.7-3
- fix for 64 bit hardcoded scripts

* Wed Jan 31 2006 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.3.7-2
- Added support for timestamps
- Another way to treat CFLAGS

* Wed Jan 31 2006 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.3.7-1
- Initial package.


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/netgen/FC-6/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	23 Aug 2007 20:23:15 -0000	1.1
+++ .cvsignore	23 Aug 2007 22:18:42 -0000	1.2
@@ -0,0 +1 @@
+netgen-1.3.7.tgz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/netgen/FC-6/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	23 Aug 2007 20:23:15 -0000	1.1
+++ sources	23 Aug 2007 22:18:42 -0000	1.2
@@ -0,0 +1 @@
+6b5489e8abf0833899da3208857ea2a9  netgen-1.3.7.tgz




More information about the fedora-extras-commits mailing list