This way to automate things called IDAPython, its documentation is here:
1 - Save this script somewhere, remember where.
#Not used, not debbugged, not ran even once
#Use on your own risk, beware errors
import idaapi
import idautils
import idc
def do_rename(l):
splitted = l.split()
straddr = splitted[0]
strname = splitted[1].replace("\r", "").replace("\n", "")
if straddr.find(":") != -1: #assuming form segment:offset
#removing segment, offset should be unique, if it isn't so, we should handle it differently
straddr = straddr.split(":")[1]
eaaddr = int(straddr, 16)
idc.MakeCode(eaaddr)
idc.MakeFunction(eaaddr)
idc.MakeNameEx(int(straddr, 16), strname, idc.SN_NOWARN)
if __name__ == "__main__":
f = open( "your_file_name", "r")
for l in f:
do_rename(l)
f.close()
In IDA, open File-->Script file, chose the script and run it.
Note that you should insert your file name and verify that the address is converted well.
Hope it gives some kind of direction.